I have character that when i press left arrow key, i move him to the left and i put a image "imageLeft", when i press right arrow i move him to the right and put a image "imageRight" .
I would want to do, when the character don't move put the image "imageStay"
Code: Select all
on arrowKey d
moveCha d
end arrowKey
on moveCha d
if d is "right then
...
else if d is "left" then
...
end if
end moveCha