Login | Register

Rate of Fire

February 11, 2009, 20:53 by Nano
[loading]
-->



Ok, in the Global Left Button event, insert
if can_shoot=true
{
instance_create (insert bullet name)
alarm[0]=8 //Adjust this to alter the rate of fire
can_shoot=false
}

Alarm 0 can_shoot=true;

Create Event
can_shoot=true;

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games