PDA

View Full Version : [AS3] help to get the attacker to the start platform, without doing it manually


PurpleZ
02-22-2009, 04:19 AM
I need help to get the attacker to the start platform, without doing it manually.

Example: Once I beat a level and I change the location of where I want the character to be, it's going to be a waste of time if I keep doing it manually if I have alot of levels.


So I decided to make a start platform for each one of the different levels, and i need to figure out how to start the game and the character will always appear on the platform. Any help?

In advance,
PurpleZ

krayzeebean
02-22-2009, 05:43 AM
Maybe something like this?

function playerStart():void
{
player.x = startPlatform.x;
player.y = startPlatform.y - 20;
}

And then call playerStart() in whatever function you use to load the next level.