Help! I need this movieclip to follow the cursor but only in some details!

Hello

I'm rather new to action script and need a bit of a kick in the right direction.

This is what I have a problem with - I used this code to the movieclip background follow the cursor:

{onClipEvent (enterFrame)}
x = _root._xmouse
y = _root._ymouse
_x +=(x-_x)/10
FLF +=(y-_y)/10
}

I want however - restict movement is so it remains hidden behind the other black point with the graphic "hglf".

I hope this makes sense and someone can help out me!

Thank you

You assign the instance names in the properties panel, or use the library names?

Tags: Adobe Animate

Similar Questions

Maybe you are looking for