Best viewed in Firefox

Awesty Productions

Going to a new frame

January 1st, 2008 by awesty

I get a lot of people asking me about this but I don’t think it is worth making a whole tutorial for, so I am just going to write this quickly.

If you want to go to frame 2 when mc1 touches mc2 use this code:

if(mc1.hitTest(mc2.)){
  gotoAndStop(2);
}

If you want to frame 9879 when the enemy has no health left use this code:

if(enemyHealth <= 0){
  gotoAndStop(9879);
}

If you want to go to a new frame when a button is pressed use this code:

on (release){
  gotoAndStop(someframenumber);
}

Now please stop asking me this question. I have been asked sooooooooooooooo many times.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • Furl
  • MyShare
  • NewsVine
  • Netscape
  • Reddit
  • Simpy
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.