R
RedPandaInTopHat
Guest
I tried to make a shotgun that after 2 shot pause for a few sec before able to shoot again, i've been at it the entire night but just could do it
here's the Obj code but i don't think it will be relevant
//Creation code
firingdelay = 0
//Begin step code
firingdelay = firingdelay - 1
if (mouse_check_button(mb_left)) and (firingdelay<0)
{
repeat(4)
{
firingdelay=30
with (instance_create_layer(x,y,"Bullets",ShoBullet))
{
speed = 35
direction = other.image_angle + random_range(-7,7)
image_angle = direction
}
}
}
If anyone can help, i'll be grateful
here's the Obj code but i don't think it will be relevant
//Creation code
firingdelay = 0
//Begin step code
firingdelay = firingdelay - 1
if (mouse_check_button(mb_left)) and (firingdelay<0)
{
repeat(4)
{
firingdelay=30
with (instance_create_layer(x,y,"Bullets",ShoBullet))
{
speed = 35
direction = other.image_angle + random_range(-7,7)
image_angle = direction
}
}
}
If anyone can help, i'll be grateful
Last edited by a moderator: