I have my game as a point and shoot side scroller. What I need is for my character's direction to face the cursor, but still work off of the platform movement.
Printable View
I have my game as a point and shoot side scroller. What I need is for my character's direction to face the cursor, but still work off of the platform movement.
Try Animation-->Change-->Direction of animation
That didnt work. It just stays still.
Another way would be to make the object with platform movement invisible, and have a "player display" object that always sets its position to the invisible object. Then just set the direction of the display object.
Thanks, I just learned that I could make 8,16,32 directions for each animation. Then I set it to look in direction of, and It worked. Thanks for your time UltimateWalrus.
You also could use an angle instead: Always set angle of player to NUMBER-ATan2(YMouse-YActionPoint( "Player" ), XMouse-XActionPoint( "Player" )). Change NUMBER to 0, 90, 180, or 270 depending on the direction your player is facing.
-Variant
Here's what I do. I would make an invisible object and set its x and y coordinates at the mouse.
Always==>Set X to XMouse, Set Y to YMouse,
Then I would make it so that the player is always looking at that object
Always==>Player Look in the direction of object at (0,0)