V
veko
Guest
Hello, so i have my caracter that can dash and when he dashes through enemy i set room speed to 10, just to give a little bit of "jucie" to game by having time slow down for a split second, and then i set alarm[1]=2;
and on that event it sets back the room speed to 30 again, for some reason it's not working!
CODE:
on obj_player
event: collision with obj_enemy
if global.isDashing = true
{
room_speed = 10;
instance_destroy();
score ++;
alarm[1] = 2;
}
alarm 1:
room_speed = 30;
Can someone help me out on this, please?
and on that event it sets back the room speed to 30 again, for some reason it's not working!
CODE:
on obj_player
event: collision with obj_enemy
if global.isDashing = true
{
room_speed = 10;
instance_destroy();
score ++;
alarm[1] = 2;
}
alarm 1:
room_speed = 30;
Can someone help me out on this, please?