Be a Supporter!

nextFrame on seperate movieclip?

  • 350 Views
  • 2 Replies
New Topic Respond to this Topic
InnerChild548
InnerChild548
  • Member since: Aug. 10, 2007
  • Offline.
Forum Stats
Member
Level 35
Melancholy
nextFrame on seperate movieclip? 2009-02-22 16:20:22 Reply

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();
}

BBS Signature
Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to nextFrame on seperate movieclip? 2009-02-22 16:24:24 Reply

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


- - Flash - Music - Images - -

BBS Signature
InnerChild548
InnerChild548
  • Member since: Aug. 10, 2007
  • Offline.
Forum Stats
Member
Level 35
Melancholy
Response to nextFrame on seperate movieclip? 2009-02-22 16:28:08 Reply

Oh, that's it, silly me.

Appreciate it, Denvish.


BBS Signature