Skip to main content
Participant
December 29, 2006
Answered

movieclip follow another movieclip

  • December 29, 2006
  • 2 replies
  • 256 views
Hi,

I wanted to know how to make one movieclip follow another movieclip as I have a mask movieclip which masks the stage except a fish movieclip. I want the mask movieclip to be on the fish movieclip at all times so when the fish moves, the mask moves with it and so when the fish moves over something, the mask will reveal whats there.

Thanks

Abs55
This topic has been closed for replies.
Correct answer Abs55
Don't worry, i have found the answer. If anyone else wants to know, it is :

onClipEvent(enterFrame){
_root.mask._x = _x;
_root.mask._y = _y;
}

This codes goes on the fish movieclip. Replace 'mask' with your own movieclip for it work.

Abs55

2 replies

December 29, 2006
I think you can use the fish and the mask movieclip in an another movie clip.
I am not sure. I can help you if you explain with more details ???
Abs55AuthorCorrect answer
Participant
December 29, 2006
Don't worry, i have found the answer. If anyone else wants to know, it is :

onClipEvent(enterFrame){
_root.mask._x = _x;
_root.mask._y = _y;
}

This codes goes on the fish movieclip. Replace 'mask' with your own movieclip for it work.

Abs55