• 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!

projectiles

  1. A

    How do you make the player only shoot a projectile horizontally?

    I am trying to make a game where the player can shoot a projectile similar to how Mario would fire a fireball when he gets a power-up. Does anyone know how to code that feature?
  2. A

    SOLVED Projectiles are messed up whenever a new one is created (using instance id and not object)

    I'm working on a tower defense game and I ran into this problem. I created a projectile and every time a new one is created, all of the projectiles that are currently on screen are messed up, I came to the conclusion that perhaps the variables are being changed every time a new projectile is...
  3. L

    SOLVED Need help with making the projectile flip whenever i look either left or right.

    I have the basic character shooting code but i'm not quite sure how to code in a way for the projectile to flip everytime you look a vertain direction. For example when i look left, my projectile shoots and moves backwards. here's my shooting code: if can_fire and...
  4. O

    show_error second argument issue

    I recently was following a tutorial on how to create projectiles from the player and at the end of an Animation End event there was an error that I continuously ran into. The system told me that there was only 1 argument when there needed to be two. I was able to find the second argument...
  5. C

    GameMaker Destroy projectile at specific tile location

    Hello everyone. I am new to GML and GMS2 but am in love with everything and the amazing community. So, I am already able to successfully shoot a projectile object, from the players location/gun, towards the mouse click location/enemy. (In a top down 2D shooter type game). However, I am...
  6. Null-Z

    Legacy GM Projectile with relative Direction. SOLVED

    I want to code a burst projectile. it will start as a separate projectile and once it hits a ground object it creates a bloom of smaller projectiles that spread out in 8 directions. now, coding the initial phase won't be a problem, just a matter of using the right loop to create the projectiles...
  7. Warspite2

    Physics projectiles and image angles [SOLVED]

    I have a physics game with a player helicopter. Player presses key to apply physics force on y axis to raise heli. Below are AA tanks which fire bullets at the heli. How can I get the aa bullets to shoot straight? I would rather the bullet not use physics but if I uncheck uses physics then it...
  8. P

    GameMaker Making projectiles fall only in one room

    Do you guys know how to make projectiles fall only in one room? When I'm making emiter it constantly spawns projectiles in all rooms I enter despite that the emiter wasn't persistent.
  9. T

    Legacy GM Physics - Maintain a constant speed / power

    Hey folks, Let's talk physics! At the moment I have a projectile the player can angle and then fire out, which uses physics_apply_impulse() to give it a kick. //make the arrow move var dir = point_direction(x, y, mouse_x, mouse_y)-180; physics_apply_impulse(x, y, lengthdir_x(50, dir)...
  10. T

    Projectile powerup

    How do I make a power up that makes the player able to shoot projectiles, and after some time the powerup runs out and you can't use the projectiles?
  11. D

    Legacy GM Bullet Firing Out of only One Enemy

    Hi everyone, I am polishing my game a little and wanted the enemies bullets to come out of the gun from the end. The code i originally had was using the x and y values of the enemy. Originally: Alarm[1] instance_create(x,y,obj_enemyBullet); When I put in a code to make it come out of the...
Top