RE: Pokemon Ice Version *Updated With New Wave of Artwork*
That look like it?
Code:
// Speed - Set for movement (Go) and when you stop (Stop)
speedGo = 2;
speedStop = 0;
// Set the speed of which all animations will follow.
image_speed = .2;
// Controls set animation for walking, and what sprite to set when stopped.
if (keyboard_check(vk_up))
{
{sprite_index=BackwardWalking};
y -= speedGo;
}
if (keyboard_check_released(vk_up))
{
{sprite_index=BackwardStill};
y += speedStop;
}
if (keyboard_check(vk_down))
{
{sprite_index=ForwardWalking};
y += speedGo;
}
if (keyboard_check_released(vk_down))
{
{sprite_index=ForwardStill};
y += speedStop;
}
if (keyboard_check(vk_left))
{
{sprite_index=LeftWalking};
x -= speedGo;
}
if (keyboard_check_released(vk_left))
{
{sprite_index=LeftStill};
y += speedStop;
}
if (keyboard_check(vk_right))
{
{sprite_index=RightWalking};
x += speedGo;
}
if (keyboard_check_released(vk_right))
{
{sprite_index=RightStill};
y += speedStop;
}
That look like it?