Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shooter]

A game where the primary player action is to attack and eliminate enemies.

0
votes
2answers
40 views

How would I apply force to a bullet in 2D?

I wrote the code below in order to try to get a bullet to fire at a specific angle for my top-down shooter. However when I press space the bullet just spawns in front of the game object despite it ...
0
votes
1answer
90 views

Unity C#: Accurate MachineGun Firerate at lower FPS

I have long accepted that my firerate will be more or less irregular and inaccurate. Now that I'm adding sound things are getting really ugly. My methods for getting the firerate are primitive and I ...
0
votes
0answers
61 views

How to shoot to where the player is facing in a 2D top-down mobile game? Unity C# Mobile Development

In my project, I would like to shoot bullets into the direction in which the player is facing. I made a Player GameObject with a child, BulletSpawnPoint, in which the bullet should come from. The ...
0
votes
1answer
41 views

Rotating Weapon Towards mouse.position

OK guys i have tried lots of things and researched but cannot find a solution please someone give me hope.. So on my phone when i am playing i want to shoot with a screen button in the canvas that is ...
3
votes
3answers
72 views

TypeScript Space Shooter movement

I'm trying to create a simple space shooter game using typescript and i've got kind of stuck at checking the movement.The thing is that if i only press one key it works fine but if i press 2 keys at ...
1
vote
0answers
82 views

TBS Shooter targeting AI

I have some experience in developing all sorts of (small) games using Unity3D, I have a few personal game projects and I also work for a small game studio. The only subject in game development that I'...
1
vote
1answer
61 views

Help creating a new gunfire code

I am working on a top down shooter project, utilizing the Tumult Hype program ( this means I cannot use Canvas and anything that works within canvas does me no good.) I have hit a small snag. The code ...
1
vote
2answers
956 views

Programmatically creating a continuous scrolling background in Game Maker: Studio

I have 15 background images for a 2D horizontal scrolling shooter game and I have been wondering how to insert programmatically those background images in the first level room, as I want them to be ...
1
vote
1answer
552 views

Unity - How can I make my player's gun point at the cursor, not the player itself? [duplicate]

I'm making a 2D top-down shooter in unity. Currently, I'm using the code below to point my player towards my cursor at all times, this works but isn't exactly what I want. ...
3
votes
1answer
67 views

2D bone animation - point gun at mouse

How is this handled? https://www.youtube.com/watch?v=egk3yD1w4Wo It's some form of kinematics which I kinda understand and I have a very solid grip of trig, but I don't know how to start with having ...
3
votes
1answer
151 views

Detecting interesting kill in a 2D shooter

In Xonotic for some kills (and maybe even just hits?) the game plays a sound clip saying "Impressive!". I was wondering how does the game recognize that a kill was impressive. In Xonotic it feels like ...
3
votes
3answers
2k views
1
vote
1answer
319 views

Twin stick shooter turning and animation using Vector3.Angle() in Unity

I am trying to smoothly transition between running, strafing, and running backwards by calculating the angle between the left thumb stick (move) and the right thumb stick (rotate). It is my ...
1
vote
1answer
202 views

Categorizing Projectiles in an arcade shooter (multiple inheritance?)

I have been working on a simple arcade shooter in Java in the vein of missile command/space invaders. I've made a base Projectile class and have been extending other Projectile types from it. This ...
0
votes
1answer
100 views

How to map changing stances (southpaw/orthodox) to gamepad controls?

I am developing a third person hack n slash style game which features a variety of melee and projectile weapons as well as unarmed combat. The player will be able to dual wield any combination of the ...
80
votes
28answers
18k views

How can I discourage camping while still supporting a “sniper” style of play?

I am trying to add features into a third person shooter that suit a sniper style of play, in addition to the current rush/deathmatch style it was designed for. The current gameplay is similar in style ...
1
vote
1answer
456 views

Making only parts of a mesh destroy in UE4

I am making a 3d, 3rd person shooter game where I want everything to be destructible. UE4 makes this possible by making meshes destructible, but the problem is that when the mesh is damaged, it ...
0
votes
1answer
210 views

Can this script be edited to create a “shotgun” type spread when firing? [Top down shooter]

I have this code and I'd like to add a shotgun to the game by slightly modifying the code. I've looked online for any example but everything I find is for FPS not a TDS. ...
0
votes
1answer
759 views

Rotating A 2D Cannon Based On Mouse Position [duplicate]

I'm creating a game like bubble shooter, I have a cannon which is in the image bellow: I want to rotate the cannon based on mouse position. So far I tried various solutions I found over the web but ...
0
votes
1answer
68 views

Rotating 2D-Projectile towards mouse, hides the projectile (Maybe changes the layer)

I want to shoot towards my mouse, which is working fine now. After this was solved, I wanted to rotate the projectile, so that it's looking to the mouse. This is my code: ...
2
votes
1answer
119 views

My bullet changes the velocity depending on where I click

I want to build a little 2D-Sidescrolling shooter and I'm now at the shooting script. I already figured out how to shoot a bullet towards my mouse pointer. I got something like this : ...
2
votes
1answer
441 views

Gamemaker - Change the fired bullets' direction using objects as guide

So I am trying to create a shooting-ship-puzzle game at sea on gamemaker. There is a playership that must shoot the enemy ships using only the available "whirlpools". There are many whirlpools in the ...
1
vote
2answers
96 views

What factors affect the size of ammo limits?

In virtually all shooting games that use ammo, there is also a maximum ammo limit, which often varies between different ammo types. One obvious advantage of using ammo limits is to control the ...
0
votes
1answer
950 views

Java2D Shooting in a line tangent to mouse coordinates

I am making a top down shooter in Java and I need to be able to shoot in a line tangent to the mouse coordinates. In other words I need to be able to click my mouse and have a projectile spawn from my ...
0
votes
1answer
103 views

3d rotation of a Gunner unit to shoot the target

I'm developing a scenario to shoot incoming targets by a specific gunner unit, however I'm confused to actual logic of shooting an object with a gun. I'm working in 3D environment. I'v target's ...
-1
votes
1answer
714 views

Why bother with server-side hit detection?

Valve's hit detection tracks player positions from when the bullet fired and then tells clients only whether the hit happened, but I can't see why that is necessary in the first place. Does server-...
2
votes
1answer
541 views

Bullets won't shoot out of barrel in top-down shooter

So I am working on a top down shoot and have been stumped on why my bullets refuse to come out of the barrel of the gun. I know about the rotation equation which is ...
1
vote
1answer
430 views

DirectX Bullet Tracer Effect

I'm wondering if anyone knows some common and efficient ways to do a fast tracer for an instant bullet. I've seen people speak on forums of using primitive lines with DirectX, but I doubt this is up ...
0
votes
1answer
650 views

How can AI compute movement in 2D games

I know how to create a basic AI for a game, where the AI simple creates units that only march forward. The AI only decides when to create a new unit, taking into account a number of considerations. ...
0
votes
1answer
262 views

Questions about networking theory in a 2d shooter game [duplicate]

So currently I am starting to work on a 2d top down space shooter game, and I have just got to networking. So far the client can draw a ship at a desired x, y and rotational coordinate with any set of ...
2
votes
2answers
382 views

About making damage between units

I am making my own Tower Defence game engine. I havent built one before and I don't know lot of stuff how games work. I will take Starcraft as an example. You have a marine shooting a zergling from ...
56
votes
8answers
17k views

Why do most video game guns reload without losing unused ammo in the magazine?

If I have picked up 500 spare ammo and I 73/100 bullets in my current gun, why will I end up with 473 spare ammo instead of 400 (losing the 73 unused rounds in the previous magazine)? Is this just to ...
-2
votes
1answer
237 views

Spawning enemies outside of view [closed]

I'm trying to create a 2d shooter for Android. How do I spawn enemies "above" the screen, so that they "enter" the game screen instead of spawning at the top of it? I think I need to make a game ...
0
votes
1answer
422 views

Using buttons on Smartphone shooter games [closed]

Just a simple and probably stupid question. I noticed that many iOS and Android shooter games tend to avoid using traditional buttons in favour to autofire. The very first reason to do so is to ...
0
votes
1answer
265 views

Character movement relative to cursor position

I want my top-down shooter character to move towards the mouse when pressing the up arrow and strafe relative at right angles to it when pressing the left and right arrow keys. I can't figure out how ...
5
votes
3answers
3k views

How to Align Gun with Bullets

I have a top-down 2D shooter. I have an image of a player holding a gun, that rotates to face the mouse. Please note that the gun isn't a separate image tethered to the player, but rather part of the ...
0
votes
1answer
3k views

How to make a top down shooter? [closed]

I want to know is with XNA 4.0 (and C#) How do I exactly make a top down shooter? I have been looking for ages, but have been unable to find out how. If someone could tell me how to get started with ...
8
votes
3answers
4k views

How to Effectively Create Bullet Patterns

I'm currently creating a top-down shooter like Touhou. The most important factor of the game is that there are many diverse patterns and ways at which bullets are generated and shot at the player, see ...