M
mohammad
Guest
So I am trying to create this game in a physics world.. and although , the moving and standing animation is working, the punching animation isn't.. it doesn't do anything.. it just remains stuck there.. although while moving the player, if i press the button for punching it kinda works.. but I want it to properly work while i am standing.. Before, I used to make games on non-physics world and use some scriptes made by a friend that had some pre-defined values for hspeed or vspeed so all i had to do was write this code for making the animation work while standing which was something like this:
- if(!keyboard_check(vk_right) && !keyboard_check(vk_left) && !keyboard_check(vk_up) && !keyboard_check(vk_down) && sprite_index!=spr_player_attack && sprite_index!=spr_player_attack3){
- image_speed=12;
- sprite_index=spr_player_stand;
- }