hi, im working on a shooting game in flash 8, and i am having some troubles. I want to make it so when the mouse is one side of the screen "player" flips and looks at it, and when its on the other, it flips and looks at it.
It is what the player does in this game: [url]http://www.crazymonkeygames.com/Thing-Thing-3.html[/url]
I want to get the player to act like that when the mouse is on one side.
Picture of what i want just in case i didn't explain it right.
[IMG]http://i869.photobucket.com/albums/ab255/Yournameisinvalid21/Seewhatididthar.png[/IMG]
Yes i know its horrible, but basically its saying
"when mouse is left of player, player is facing left when mouse is right of player, player face right"
Thanks.
any questions, just ask.
if(_root._xmouse > player._x) _xscale = 100;
if(_root._xmouse < player._x) _xscale = -100;
Don't know your code, but it should be in some form of loop.
This code dosent want to do anything.
Sorry, you need to Log In to post a reply to this thread.