Be a Supporter!

going to next frame

  • 231 Views
  • 1 Reply
New Topic Respond to this Topic
TheMachinimanator
TheMachinimanator
  • Member since: Nov. 26, 2009
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
going to next frame 2010-07-12 12:36:35 Reply

onClipEvent(enterFrame){
if (_root.next_frame.hitTest(_x, _y, true)) {
nextFrame();
}
}
I have that at the very bottom of the player and it doesnt work, I have a movieclip called next_frame with the instance name next frame and its on the same layer as the ground which would be behind the player. is the code wrong? or should i just move it to a different layer? thanks

Treerung
Treerung
  • Member since: Apr. 18, 2008
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to going to next frame 2010-07-12 12:44:01 Reply

Its hard to say what the problem is without seeing how the movieclip is set up
You should try changing to nextFrame() to _parent.nextFrame()


:'(

BBS Signature