- Home /
Question by
amayasan013261 · Jun 18, 2015 at 06:23 AM ·
2d gameleveling
i would like to ask what is the best and simple code for changing to the next level when a game object is triggered?
once the enemy is defeated the player will move to the net level after moving to the other side of the game...the movements of the character is just either left or right no jumps...and it is 2d thanks...
Comment
Best Answer
Answer by DoubleIsLoveDoubleIsLife · Jun 18, 2015 at 08:40 AM
Application.LoadLevel(Application.LoadedLevel+1)
Make sure to put all of your level in the build settings.
oh thanks i got it...i'm new at this so it helps :D
@amayasan013261 : You could have make like... 5 seconds of research on Google to have your answer ?
By the way, don't forget to check DoubleIsLoveDoubleIsLife's answer by clicking on the check mark under the downvote button.