Moving an animated Sprite with arrowkeys
Posted: Mon Dec 30, 2013 8:44 pm
Hello everyone!
First I know LiveCode a while and I've edited all of these tutorials : Learning to create Games (I can't poste any links sry)
So I would like to create a game with an animated Sprite which can be controlled with the arrow keys.
What I have to change on this code that the Player moves like Mario when he presses the arrow keys?
How can an animate a Sprite?
I hope you all know what I mean
I would be very thankful about any response
Sorry for my bad english 
on arrowkey x
if x is "right" then
set the right of the button "box" to the right of the button "box" + 10
if right of the button "box" > the right of the card "mycard" then
set the right of the button "box" to the right of the card "mycard"
end if
end if
if x is "left" then
set the left of the button "box" to the left of the button "box" - 10
if the left of the button "box" < the left of the card "mycard" then
set the left of the button "box" to the left of the card "mycard"
end if
end if
end arrowkey
(Its the code from the Tutorial Moving your Player)

First I know LiveCode a while and I've edited all of these tutorials : Learning to create Games (I can't poste any links sry)
So I would like to create a game with an animated Sprite which can be controlled with the arrow keys.
What I have to change on this code that the Player moves like Mario when he presses the arrow keys?
How can an animate a Sprite?
I hope you all know what I mean

I would be very thankful about any response


on arrowkey x
if x is "right" then
set the right of the button "box" to the right of the button "box" + 10
if right of the button "box" > the right of the card "mycard" then
set the right of the button "box" to the right of the card "mycard"
end if
end if
if x is "left" then
set the left of the button "box" to the left of the button "box" - 10
if the left of the button "box" < the left of the card "mycard" then
set the left of the button "box" to the left of the card "mycard"
end if
end if
end arrowkey
(Its the code from the Tutorial Moving your Player)