aiming

  1. P

    GameMaker Help with angles maths

    Hello everybody. I need help in making my cursor (which is an aim of the player) move randomly around the real cursor(mouse x and y). The problem is I don't know how to create the function of the x and y coordinates of the cursor (which is actually just a point with sprite) the way that it moves...
  2. W

    GML Physics: Bullets Not Shooting Straight W/ 360 Aim

    Hi, I can't seem to get the player's projectiles to shoot straight using physics. In the game I'm making the player has 360 degree aim. Currently bullet direction is decided by phy_roations = obj_player.phy_rotation. It does the job for the most part except the trajectory of the bullets are...
  3. M

    physic impulse aiming system?!

    hay guys I made a game like "angry bird" but it's not about braking blocks it's about jumping on them with true aiming so it's too difficult for users because they can't aim! they trying to do this like other games but the object (I don't know why maybe because physics settings like density...
  4. S

    Legacy GM [SOLVED] Trying to create an aiming reticle like that of Crimsonland

    Hi Everyone. I'm working on a top down shooter that's inspired by Crimsonland. Currently I have a system where every time the weapon is fired recoil increases. For every unit of recoil, the deviation in the player's accuracy cone is widened by a single degree. This system is currently...
  5. B

    How to check if a player is facing another...

    I'm building a top-down shooter. I have a target-A which basically sits in the center of the room I have ships which fly around the room in various formation patterns or whatever. The ships have laserbeams that fire directly forward. I want the ships, as they fly about the room - to check...
  6. T

    GameMaker [solved] Aiming (camera)

    In my game I want it so if I am holding right click on a mouse or L2 (gp_shoulderlb) on a controller, it will slowly move the camera towards a point (which will be the camera's view width or height/2 past the camera's target object, with an angle up to 360 degrees). And if I release right click...
  7. N

    Sprite following the mouse

    Hey guys, I need your help. I'm trying to make a 2d shooter and it's NEITHER a topdown shooter NOR a platformer. It's a rpg game. I want that my character follows my mouse when I'm aiming but I don't know how to do it. I do know how to make my character follow my mouse in a topdown shooter or...
  8. D

    (SOLVED)Could someone help me with this please?

    I'm trying to make a Nuclear Throne type movement (The player faces the mouse and switches the direction it's facing based on where the mouse is) but I can't figure out how to fix this thing that's happening. The system works fine when not moving and when moving to the right but when the player...
  9. C

    Legacy GM Aim Line

    I'm developing a break-out style game. An 'aim line' assists the player. It is intended to be the length of the mouse cursor away from the ball and point in the opposite direction. Example: Cursor is 180 degrees and 50 pixels away from ball. Aim line is 0 degrees and ends 50 pixels away from...
  10. S

    GML (SOLVED) course correct/curved aiming

    so i want one of the shot types (aside from the laser i mentioned in another thread) to first be shot up, and then gradually correct its direction towards an enemy. sort of like this, i suppose. heres an example - blue is the straight aim, black is the kind of aim i want (i used a circle tool...
  11. P

    Legacy GM [SOLVED] AI advanced aiming, no idea where to start

    I have a top down shooter, where there is an enemy that will calculate where the player is going to be by the time his bullet reaches the player. He needs to aim in front of where the player is so that his bullets are harder to dodge. I want to use the player's move speed and direction, along...
  12. S

    Aiming without mouse

    I have a local multiplayer game where I want the controls of each player be as similar as possible. However, I would like to give each player the possibility to shoot in all directions without the mouse, but I'm lacking the ideas on how to implement this in the controls. First of I thought about...
  13. D

    (SOLVED)How can I make a bullet appear from the end of a gun when the gun can change angle??

    I have a system set up where you aim with the mouse but I can't figure out how to make the bullet spawn from what ever angle my gun is at. I need a way to some how check the angle the gun is so I can update the x and y potions for the bullet creation.
  14. D

    GML I'm getting weird rotation when using point_distance

    I'm setting up an aiming system where the player can aim with the mouse (I have a different sprite for the arm) and to make the arm follow the mouse i'm using image_angle = point_direction but for reason the arm wont follow the mouse correctly. For example when I move the mouse down the arm wont...
  15. D

    Anyone know why this is happening?

    So I have set up the start of an aiming system pretty much like Gunpoint and Deadbolt (if you don't know those games I basically have the main body sprite of the player and a another sprite for the arms, when you aim the arms follow the mouse up and down like the player is aiming) My issue is...
  16. D

    How can I make an aiming system where the players arm follows the mouse?

    I'm trying to come up with a system where my characters arm follows and faces the mouse when aiming like in games like Gunpoint for instance. I imagine you use a separate sprite for the actual arm and point distance for the mouse maybe? I'm just not sure how to do it. If anyone could recommend...
  17. B

    Gamepad aiming delay bug in 2d platformer [solved]

    Hey! I've wasted too many hours trying to figure this out and I could really use some advice. I'm working on a sort of proof-of-concept for my platformer, getting all the movement and basic shooting controls working to my satisfaction before doing anything else. I've got 8-direction aiming all...
  18. N

    Help with coding an aiming system

    In some games there is an aiming system consisting of a dotted line and an icon where a given projectile would land (most common in tank or golf games). The dotted line is my focus here, though. When aiming a projectile, I want to have a set number of dots in the line that compact as the shot's...
  19. P

    Legacy GM [SOLVED] Aiming and shooting - Different actions / keys

    So I have this attack script, it works fine but I would like to improve it. I want to be able to aim and shoot and by that I mean: If I press and hold right mouse button, player will aim and animation will stop at 7th frame, and when it is 7th frame I can press left mouse button and shoot like...
  20. W

    Animation Aim with Arrow keys

    Hey guys, I'm an artist trying to get some controls worked out so I can work on game animations. I am wondering how I could change animations with the up or down arrow buttons. A type of index perhaps? when you press up his aim animation will angled, press up again even more angled, and 3rd...
Top