How to make a level system

how to make a level system in wick editor

but whats a level system

I’ll be guessing @slimebor wants a system to have multiple levels, or sequences that the player goes through to reach an end, organized in a project for a player to go through.



You can have a project variable that keeps track of the players current level

project.level=1; // Player's on level one

And you can have objects that act according to level

if(project.level===1){
// Plug in code for level one
}

As well as change the level, player’s position, or frame when an end is reached

if(player.hitTest(end)){
project.level++;
player.x=defaultX;
player.y=defaultY;
gotoNextFrameFrame();
project.levelsUnlocked++;
}

You might also wanna create an array of the players accomplishments

project.accomplishments=["Golden medal Level 1","Silver medal level 2"];

And add an accomplishment whenever a player achieves something, buys something with in-game coins, or earns something.

project.accomplishments.push("black belt"); // New accomplishment!

After you keep track of accomplishments, a player should be able to retry other levels by deciding to do so. You might therefore need a menu that pauses the game and I recommend creating a layout of all of the levels on one frame. Once the player selects a level, take them to that frame, and set project.level to that level number

gotoAndStop("level_11"); 
project.level=11;

Make sure that when a player replays an already completed level, the amount of levels unlocked doesn’t change.

if(player.hitTest(end)){
if(project.level===project.levelsUnlocked){
project.levelsUnlocked+=1; 
/*New level unlocked!
  */
}
}

There are a lot of other methods you can use while creating a level system,
but it all really depends on your game

when you can finish levels get to another level if you get what i mean

Is this what you’re looking for??? : Level System1-19-2021_7-53-09.wick (18.3 KB)

Is that the level system you’re talking about???

when i try to download it. chrome starts glitching and downloading over and over again the file

did you try the app?

do you mean forum app ?

no, the editor has an app. it should be on the home page of wick. there should be a download link below “launch editor” that takes you to the github page. the pkg file is for mac, exe is for windows, and appimage is for Linux. (i think.)

i already have the editor on my pc its just that the thing happens when i download the file from @Andeer then it starts the thing

Wait lemme resend it after im on pc