Hi,
How do I play the walking animation left and right while I move the active
with XMouse? Eveything I tried results in a walking active with his face to left or right.
Thank you,
Ineke
Printable View
Hi,
How do I play the walking animation left and right while I move the active
with XMouse? Eveything I tried results in a walking active with his face to left or right.
Thank you,
Ineke
Have you tried to force the directionj of the animation?
> Francois yes I did. It plays or the left or the right animation.
I'm not sure what you are trying to do. If you're using the XMouse, it's going to be moving left or right, which is the directions you'd want.
Not sure if this is what you want but:
XMouse is > X Position of Player; Set direction to Right, change animation to walking. (you'll need to add "only one action when event loops" or it will constantly restart the walking animation). Then do that for the left.
If that's not what you're wanting you'll have to provide some more details.
I'm actually working on a project that uses left click for jump, and the mouse pointer left or right to move. The tricky movement is actually part of playing the game so it depends on how you're using it. For something like Super Mario Bros that movement would not be good. But if the game is designed to work that way from the ground up it can be fine. It's more of a puzzle platformer. Or at least tricky physics platformer :P
That control scheme also works for iOS. Though I have no plans for iOS (no iOS device or a Mac for compiling)
Thank you Shawn. Wat I want is when the active(xmouse) goes to the right the animated walking plays it's direction to right. And the same for the left.
I'll try your example.
Ineke
You'll also have to add a condition to change the animation back to Stopped when the player stops moving or it will just keep playing the looped walking animation. Which I guess goes without saying.
If it gets stuck on the first frame of the walking animation, make sure to drop an "Only one Action While Event loops" into the event.
Thank you all for the help.
Ineke