M
Mythx
Guest
Im currently trying to make an ability where my character shoots a thunderbolt out of his arm, so i made a timer to detect when to change the sprite back to normal and then (i havent coded yet since the first part doesnt work) when to shoot the thunderbolt. The timer doesnt work, it doesnt switch back to spr_player_down. What am i doing wrong? (sorry for being a complete novice)
Code:
//Thunderbolt
if keyboard_check_pressed(ord("R"))
{
thunder_bolt_countdown=9000
sprite_index=spr_player_bolt_down
}
thunder_bolt_countdown=-600
if thunder_bolt_countdown==600
{
sprite_index=spr_player_down
}
Last edited by a moderator: