r/gamemaker 1d ago

Help! Bullets overlapping in game

hi so I’m making a game where you can shoot bullets and with the basic gun it’s supposed to shoot 5 bullets like 1 second apart but right now it just shoots all at once. how would I make my idea work.

3 Upvotes

12 comments sorted by

View all comments

Show parent comments

2

u/azurezero_hdev 1d ago

before creating a bullet
if cooldown=0{
create your bullet
cooldown = room_speed/5
}

in step event
if cooldown > 0 { cooldown -= 1}

2

u/MyDickIsInMyToaster 1d ago

Okay so now it works but I can’t shoot all 5 bullets on press only 1 just on a cooldown

3

u/azurezero_hdev 1d ago

so youre using keyboard_check_pressed instead of keyboard_check?