I need lots of help with a side scrolling flash game!?!?!?!? (More info in details)?

  • Thread starter Thread starter apple23
  • Start date Start date
A

apple23

Guest
I have created a Side-scroller in flash, but I cannot figure out how to create multiple levels and enter them when the character gets to the last part of the level. How would I do this?
I have a basic knowledge of actionscript, I just cant figure out the right script for what i want to happen. I've seen it done b4.
 
Actionscript my friend. Actionscript.

You would control all of this through Actionscript (AS) class files. Without a good working knowledge of AS, you wont be able to make that happen.

You would instantiate all of your level elements (movie clips) in your document class, and you would set event listeners to trigger when you reach the end of the level, that would then instantiate the elements on the stage for your next level.

Edit: Look up AS3 event listeners, and Event Handlers, and how to use a document class to handle multiple class files. You will need to write a class for each level and use your document class to manage them. You would be best off handling each level as an individual movie clip and adding them as Children to your stage.
 
Not fully getting what your issue is, but you need to be able to have each level use separate variables to work with. The best way to do this is with Arrays and maybe lists.

Also I find using state machines helpful. You need to run each level like it's own mini-program separate from the others, without coding being repeated for each.

As for going from level to level, you need to have a jump off point, sort of like a virtual portal within each level.
 
Back
Top