This content has been marked as final. Show 9 replies
your second problem can be fixed by changing the registration point of your follower, changing its height or adjusting its movement.
First thank you for helping me (again) but how do I do that?
I've searched a lot of examples of mouse followers but all of them were very small. My follower has 202 px of width and 575 px of height. I've tried to change the registration point and the best results I had were with the registration point in the middle but the problem continues.
Can you help me?
if the reg point is in the middle, at least, 1/2 your follower should be visible at all times. is it?
No. My document has 2000px of height and if I have the mouse outside of the swf and pass on the bottom of the document, the follower almost disappears.
I have no idea on how to do it.
I'm sorry but I'm still the same newbie in programing.
if the reg point is in the middle, your follower must be, at least, 1/2 on-stage at all times. if you can't see it, something other than that code is preventing you from seeing it.
I'm sorry. I wasn't testing with my latest version. You are absolutely right. I can see half of my follower when I pass the mouse in the bottom of my swf. The problem is that when the swf is loaded the follower also appears cut in half. Whenever I pass the mouse in the top or bottom of the swf, the follower is cut.
Do you know what can I do to make the follower stop before reaching the beginning or the end of the swf in order to stop it from being cut in half?
Thanks for your help.
you can add an if-statement in your onEnterFrame loop that assigns the mouse position to be 1/2 the follower's height when the mouse position is less than that and similarly when the mouse is less the 1/2 the follower's height from the stage bottom.