• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

shooting

  1. B

    [SOLVED] Help with Enemy Shooting

    Hi, Currently my enemies have an aggression system where when they spawn, they're set to a random aggression. With this system I have it set up where some enemies attack the player or another enemy. My issue is that if I add a "place_meeting" event with the bullet(weapon) that the enemy shoots...
  2. M

    [SOLVED] Problem with vertical collisions on knockback

    This is driving me crazy. In my game (sidescroller shooter) the gun can shoot 360º, and I added some knockback (if you shoot, you get knocked back in the opposite direction). The problem is that horizontal collision it's working just fine, but vertical collision no. Either I pass through the...
  3. W

    GML Chance scripts and going to chasing to Shooting

    I need help with some problems I have going to Chasing to Shooting. I don't know if it's in the chance script that I use to change or if it's the chase script it's self. sc_chance: /// sc_chance(%) var percent = argument[0]; percent = clamp(percent, 0, 1); return (random(1) < percent)...
  4. W

    GML Adding a "Fire Rate" to A Platformer.

    Hello, So I've been working on a platforming game for a school project and I'm fairly new to game maker. The problem is that although I have the ability to shoot a bullet from my player, the player is able to shoot as much as they want. For example they could hold down the shoot button and there...
  5. M

    Enemy shooting help

    so I am creating a platform game that has multiple kinds of turrets that shoot at the player, but I am having trouble coding the turret to shoot directly at the player. I have looked all over for tutorials and such but have had no luck. An additional problem is getting the gun barrel in the...
  6. 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.
  7. 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...
  8. S

    can anyone teach me pls?!

    so i realy love this movement how he moves his ships and i want it too but i dont know how. can anyone teach me the full movement with the waypoints and the shooting like like in this video. Video --> the green lines are for movement. the red line is for shooting if he type "for example"...
  9. 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...
  10. R

    GML Shooting Code help (newbie)

    Hello! I'm only new to game maker, and when i say new, i mean I've been using the software for less than a month. Anyway, I'm having problem with trying to get my player to shoot with the left mouse button, while also moving. For some reason the left click button wasn't working for me so i...
  11. 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...
  12. A

    Legacy GM Something about the "with" statement that's confusing me

    So, i've been confused about as to why these different sets of code works different than each other. So to set up the scene, it's a top down shooter using the physics engine, and I'm confused about the shooting mechanics. One of them works, one of them doesn't. The one that works: bullet =...
  13. Gamerev147

    Legacy GM Shooting From Gun Tip [ Help! ]

    Hello! I need help getting my instant bullets to be created at the tip of my gun. I followed Heartbeast's tutorial on top down bullets. This is the code I have for firing, I just need someone to change it for me so that the bullets will be created and start at the gun tip. Code: ///Firing...
  14. 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...
  15. B

    Player not moving right after moving left

    Hello all! First time poster, so I hope I'm doing everything correctly. I'm having a problem with my player not moving right after it moves left the first time. I am able to move the player right up until the point that I move left. After that, it is stuck and will not move. I'm new to coding...
  16. D

    Enemy shooting animation

    I am completely new to game maker, i just made an event in my enemy charecter to shoot, it will use variables to shoot every 50 steps with an alarm to make it wait until the variable is true again, howeveri cant get the animation of him shooting to work correctly, it doesn't wait until it is...
  17. E

    Legacy GM Cone shooting

    In my game, the player character can use a shotgun, and I have a problem with the shooting. I want it to be similar to Graves' from League of Legends. How can I make the bullets form a cone like that?
  18. P

    Platformer shooting - need help

    hi all, im quite new to GMS and ive hit a wall. what im trying to do is make my player sprite do some simple shooting. i watched a few tutorials and decided to give it a shot. here is the code i came up with: //shooting if(key_space){ if(image_xscale = 1){...
  19. S

    Making Burst Fire?

    I have created the gun and it shoots off of a timer so there isn't a giant spray of bullets. But what I want is for the gun to shoot in bursts. It's probably very obvious and i'm just not seeing it, i'm just starting so. Here's the guns create code CanShoot = 0; FiringRate = 7; //Bullet per sec...
  20. T

     Untitled Bullethell Game

    Untitled Bullethell Game Hey everyone! I am developing a bullethell game for school. The project is still in a very early stage of development. Please try it out and give me some feedback, I would appreciate it :) Download the demo here...
Top