![]() ![]() Sprite_index = spr_plyr //set sprite to player idle then select the 2nd last frame of animation. if this doesn't work duplicate your last space bar animation frame and paste. ![]() Change the number in brackets by the image index to the last image of your attack / space bar animation. If (sprite_index = spr_plyr_atk) & (image_index > (16)) /// set to your main index if only 1 sprite. check if current sprite is in attack and that animation is finished Image_index = 0 //set sprite index to 1st frame /// if animation in same sprite set first frame of that space bar animationĬan_attack = false //turn off player attack input Sprite_index = spr_plyr_atk //change sprite to attacking sprite /// or keep sprite index the same if your animated sprites are in 1 sprite file If mouse_check_button (mb_left) & (can_attack = true) /// change this to a keyboard check for space bar check for player input and if player is allowed to attack ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |