Be a Supporter!

hitTest Help

  • 339 Views
  • 2 Replies
New Topic Respond to this Topic
Logidude
Logidude
  • Member since: Feb. 5, 2009
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
hitTest Help 2010-01-08 22:52:17 Reply

Ok. To finish this hitTest I worked out what I did wrong.

if (_root.player.hitTest(_root.end1)) {
            //gotoAndPlay(2); (Need to replace this)
        }

What code do I use to replace gotoAndPlay(2); with? The code is on the player. The HitTest is working, just what code do I use to make it go to the next frame in the main timeline? Please help me because then the game is almost done.


BBS Signature
Johnny
Johnny
  • Member since: Apr. 17, 2004
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to hitTest Help 2010-01-08 22:53:10 Reply

_root.nextFrame();


Perpetually looking for time to return to the arts.

BBS Signature
Logidude
Logidude
  • Member since: Feb. 5, 2009
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to hitTest Help 2010-01-08 22:58:57 Reply

Thank you! I have been trying to get that to work for a while and now it does. Thanks alot.


BBS Signature