A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: help making player go to next level

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    4

    help making player go to next level

    I'm working on a plaform game and i have an object that when the player touches it i want it to take it to the next level, how do i do that?

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    FL, USA
    Posts
    442
    For such a generic question, I can only recommend that your search this site's tutorials. Maybe search for "hitTest."

  3. #3
    Must get off computer...
    Join Date
    Apr 2004
    Posts
    72
    This code goes on your charecter.
    End is the name of the movieclip of which your charecter will run over when the level is finished


    Code:
    if (this.hitTest(_root.end)) {
    level++
    //Putting here whatever you're going to put to make it go to the next level.
    }
    But as stated above, this is such an extremly generic quetion, it's hard to know what you want. Consider posting your flash file, so we can know what you want.

    At any rate, look up HitTests.
    This is where I put lyrics to songs everyone likes and things I find witty.

    I type with a British and Canadian accent. Eh, got it mate?

  4. #4
    Junior Member
    Join Date
    Apr 2006
    Posts
    4
    I tried that hittest already and it doesn't work. I still don't know what to do.

  5. #5
    Must get off computer...
    Join Date
    Apr 2004
    Posts
    72
    Quote Originally Posted by aSlick
    I tried that hittest already and it doesn't work. I still don't know what to do.
    Did you put this code on your player?
    Is the invisible movieclip that he runs in to called end?
    Did you put something like
    Code:
    gotoAndPlay(whateverframeisthenextlevel)
    This is where I put lyrics to songs everyone likes and things I find witty.

    I type with a British and Canadian accent. Eh, got it mate?

  6. #6
    Senior Member corky§urprise's Avatar
    Join Date
    Jun 2005
    Posts
    346
    I did a crappy tutorial on 'hotspots' a while back. Search that under flash Game Tutorials on this site if your still stuck.

  7. #7
    Hsalf Muta's Avatar
    Join Date
    Apr 2006
    Posts
    164
    What Bluethunder1 posted should have worked... can you give us an .fla so we can see the problem easier?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center