go to the next level

How do i make it so after i defeat all the bad guys I go to a new level?

I think there is some kind of load level command available from scripts?

thanks. also do you know how i can add a little blood to it?

You don’t want to go adding blood now do you? :wink:

First go to the build menu and add all of your scenes. Then look at the number next to the name 0 will be the one that opens on start-up. Then use this code:

Application.LoadLevel(NUMBEROFTHESCENEYOUWANT)

where do i put the code?

I got this code to work

// Loads the level with index 0
Application.LoadLevel (0);

but it automatically goes to the second level

Maybe you should first learn some javascript before making games…
You need to put it somwhere as a statement, like

if (something is true or false){
Application.LoadLevel("name of the scene")}