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

bullet

  1. B

    Legacy GM Remaining enemy objects ignoring step event code upon one being destroyed

    Hey, I've picked up GameMaker: Studio 1.4 recently and was in the initial stages of making my first prototype while learning from a video series. After having programmed an individual enemy, I wanted to try and make having multiple of the same enemy object work. It took time and patience, but...
  2. E

    Legacy GM [Solved] Bullet spawns at wrong position

    In my case i dont have a bullet, but an paper wad. The wad spawns at the wrong place. (I sped up the throw speed to show all the wads flying). This is my code: Origin: X:14 Y:18 Create event: Lenx=20; Leny=20; Step event: instance_create(x + lengthdir_x(Lenx,image_angle), y +...
  3. M

    GameMaker Projectile: image_angle problems...

    I'm pretty stumped at the moment; I have a character (obj_player) in a top-down game which can shoot a projectile (obj_bullet) based on where the mouse is. However no matter how I code it I cannot seem to rotate the image of the bullet to the corresponding direction it is moving... the line...
  4. D

    [SOLVED] Referencing Specific ID of Object in Fast Collision

    I have 3 enemies in the room. When I kill one of them, they ALL die. In my bullet End Step event, I check a collision line for fast bullet collision. My goal, I presume, is to decrease the "hp" variable of the specific ID of the enemy object that the bullet is colliding with. I've done some...
  5. D

    Gamemaker 8.1 3d FPS Bullet Collisions

    Could someone take a look at my game and figure out how i would set up Bullet collisions so that it destroys the enemy upon contact. https://drive.google.com/file/d/1Uuovz9dAeXAps71Fxgkx1efl7Rgsnepe/view
  6. N

    GameMaker Bullet collision issue!

    Hi guys, i'm making a sort of roguelike game and i'm struggling with an annoying issue about bullet collisions. My game has a resolution of 1280x720 and view is set with 640x360. My sprites are 32x32, 16x16 or 64x64. I have a player that can shoots bullets with this code: I have also two solid...
  7. W

    GML [SOLVED] Help with create_instance_layer and bullet spawn point (lengthdir issues probably)

    Hello guys, first timer here :) I'm trying to solve my issue by myself for a while now, but can't figure it out. Not enough experience yet. So, basically I have a sprite from OpenGameArt. My pivot point is in the middle of the baseball cap of that character. I've also "moved" all frames I need...
  8. A

    GameMaker Platformer Bullet Ricochet/bouncing/reflecting

    Hi all, So for a while, I've been trying to make reliable platformer bullet ricochet. Essentially, the player would shoot a projectile that would bounce/reflect off a designated object (that could be at any angle) following the ai = ar (angle of incidence = angle of reflection) formula. (as...
  9. A

    true false for bullet instances

    Hi guys, Lil "ammo issue" here... Where / what would be the best method to store a true/false state of one bullet of thousands? (This means for every instance, ever created) I have a basic setup for it and it works, but they're moving SO fast and registering at their target properly Buuutt...
  10. A

    GML Flipping bullet on off center barrel?

    Im new to game maker 2, and well creating games in general, ive been following some tutorials and decided to be abit creative early on by designing a off center barrel gun for my sprite, when the bullets fire to the right they seem to match the barrel, but they dont when the sprite flips to the...
  11. C

    Asteroid bullet blues

    YO, im making my first game following a tutorial. i got up to making my ship firing bullets but when i push fire it shots 5 bullets at a time. If i hold on to it and fly in circles it makes beautiful spiral art. how can i make it shoot one at a time
  12. H

    Make bullets go to the correct direction depending on turret angle

    Hi! Alright so I'm making this small 2D bullet hell game where you have to avoid bullets which turrets are firing at you. It worked just fine when there was only one turret, but when I started adding more turrets issues started to occur. Mostly because of this code right here in the bullet's...
  13. TheOnlyWRT

    Setting a bullet's direction

    I am trying to use just one bullet object in order to conserve the use of objects. In the step event of the different enemies when they shoot, I assumed that you could set the direction of the bullet in the step event, but that just changes the bullets direction every time the enemy changes...
  14. TheOnlyWRT

    Shooting Mechanics not working

    Hey guys, so I am making a platform game and I am integrating delay between each shot. However, I cannot get it to work. I am using alarms to handle the delay, and it works the first time, but after the first shot, I can shoot as much as I want. Here is the code: In the create event //pistol...
  15. M

    [SOLVED] Make turret dont shoot if obj_solid is blocking

    The player has an ability to summon a drone and help him, what the drone does is shoot to enemies and follow the player. Everything works perfect but it has something that i don't like... If the drone see's an enemy it stars shooting, when killed it stop, but it even shoot to enemies that are...
  16. I

    Windows time problem

    Hey guys i have a problem. I have a shooting function. And my problem is, when Im shooting with my playerobject and after that i move with the playerobject in the direction where the bullet is flew the bullet comes back after about 5-7 seconds and that in the wrong direction. please help me i...
  17. B

    Legacy GM [SOLVED] Shooting towards mouse direction

    Hey guys,i made a custom crosshair in my game and i wanted to add bullets so when i press the left mouse button it shoots a bullet towards the crosshair. So basically wherever is the crosshair if i press the left mouse button it shoots a bullet towards the crosshair. I'm using the built in...
  18. Furkan Karabudak

    GML Physics game 2 questions

    I am making an Android game. Physics , platform war game. (Sorry for my bad English) I have 2 problems : 1- When I click anywhere, the gun will fire there. Bullet is physics object. How do I get the bullet to go where I clicked and return to it? 2- A physics object is following a different...
  19. P

    bullet direction

    hey guys. So im having difficulty with my ranged attack code. im using and 8 driectional movement but i want myy charater to look, and attack in 4 directions. Given these criteria, and the following object information, how do i make my bullent travel the direction im looking? Information...
  20. K

    GML Destroy enemy and bullet on collision [GMS 1.4]

    TL;DR: Bullet doesn't get destroyed, even though instance_destroy(); is being called upon it via the enemy (red rectangle). Solution: In the enemy event of collision with the bullet, use the following code: bullet = instance_place(floor(x), floor(y), Bullet_Obj); if (bullet) { with (bullet){...
Top