L
lasoris7
Guest
So I was making a side-scroll shooter from Shaun Spalding's tutorials , I used an alarm[0] for automatic shooting when holding spacebar,it works but I wanted to implement a powerup that makes you shoot bullets like a cone for 15 seconds then return back to normal shooting, I used an alarm for that (alarm 1) and alarm[0] and alarm[1] either cancelled each other , did nothing , shot normally or didn't work at all. I tried many ways but which one do you suggest ?
obj_player
events
Keyboard > Space
execute code
if (alarm[0] = -1)
{
alarm[0] = 5
}
and alarm[0] event is
execute code
bullet1 = instance_create (x,y-32,obj_bullet);
bullet1.direction = 90;
I tried many ways for making the cone powerup (collision with obj_powercone ,step,create,if alarm0 is not set, etc etc...) but none of them worked, so what should I do? (I'm using the steam free version of gms 1.4)
obj_player
events
Keyboard > Space
execute code
if (alarm[0] = -1)
{
alarm[0] = 5
}
and alarm[0] event is
execute code
bullet1 = instance_create (x,y-32,obj_bullet);
bullet1.direction = 90;
I tried many ways for making the cone powerup (collision with obj_powercone ,step,create,if alarm0 is not set, etc etc...) but none of them worked, so what should I do? (I'm using the steam free version of gms 1.4)