nextFrame on seperate movieclip?
- InnerChild548
-
InnerChild548
- Member since: Aug. 10, 2007
- Offline.
-
- Forum Stats
- Member
- Level 35
- Melancholy
How do I make it so when my player touches the switch (this.) it plays the movieclip (door).
onClipEvent(enterFrame){
if(this.hitTest(_root.player))
door.nextFrame();
}
- Denvish
-
Denvish
- Member since: Apr. 25, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (15,977)
- Block
-
- Forum Stats
- Member
- Level 46
- Blank Slate
At 2/22/09 04:20 PM, InnerChild548 wrote: How do I make it so when my player touches the switch (this.) it plays the movieclip (door).
onClipEvent(enterFrame){
if(this.hitTest(_root.player)){
_root.door.play();
}
}
Make sure the door MC has the Instance Name door
- InnerChild548
-
InnerChild548
- Member since: Aug. 10, 2007
- Offline.
-
- Forum Stats
- Member
- Level 35
- Melancholy
Oh, that's it, silly me.
Appreciate it, Denvish.


