The last few days I have been trying to figure out how to constrain a MC that follows the mouse on the Y axis with no luck.
While I have certainly come across many threads on the matter, on many boards, every method of doing it (including the mouse follow) is different and adding to my confusion.
Here’s the code I’m using, and by all means, if you know of something simplier, then let me know.
So, as I wanted this will follow my mouse. However, if the user was to go beyond the movie frame, I also lose the MC. I want to restrict it to a min of 20 and max of 230.
Can anyone help. I’m getting desparate here. Make me go to bed a happy girl.
The code goes in your onEnterFrame section, you will need to modify it to fit the needs of your movie, I can’t see exactly how everything works so that is up to you.