S
sniper4627
Guest
My GameMaker Studio version is 1.4.1757
The problem is my character continues to animate or walk. I use the syntax image_speed = .2;
But the character still walking or animate
You may watch the video I made, so you can see what I'm talking about
Please tell me if I did something wrong and what is it?
I beg for help.
The link of video
↓ ↓
Take a look
This is in Step Event
//MOVE UP
if (keyboard_check(vk_up))
{
phy_position_y -=5;
sprite_index = spr_husky_up;
image_speed = .2;
}
//MOVE LEFT
if (keyboard_check(vk_left))
{
phy_position_x -=5;
sprite_index = spr_husky_left;
image_speed = .2;
}
//MOVE DOWN
if (keyboard_check(vk_down))
{
phy_position_y +=5;
sprite_index = spr_husky_down;
image_speed = .2;
}
//MOVE RIGHT
if (keyboard_check(vk_right))
{
phy_position_x +=5;
sprite_index = spr_husky_right;
image_speed = .2;
}
In Create event
//Set fix rotation
phy_fixed_rotation = true ;
image_speed = 0;
The problem is my character continues to animate or walk. I use the syntax image_speed = .2;
But the character still walking or animate
You may watch the video I made, so you can see what I'm talking about
Please tell me if I did something wrong and what is it?
I beg for help.
The link of video
↓ ↓
Take a look
This is in Step Event
//MOVE UP
if (keyboard_check(vk_up))
{
phy_position_y -=5;
sprite_index = spr_husky_up;
image_speed = .2;
}
//MOVE LEFT
if (keyboard_check(vk_left))
{
phy_position_x -=5;
sprite_index = spr_husky_left;
image_speed = .2;
}
//MOVE DOWN
if (keyboard_check(vk_down))
{
phy_position_y +=5;
sprite_index = spr_husky_down;
image_speed = .2;
}
//MOVE RIGHT
if (keyboard_check(vk_right))
{
phy_position_x +=5;
sprite_index = spr_husky_right;
image_speed = .2;
}
In Create event
//Set fix rotation
phy_fixed_rotation = true ;
image_speed = 0;