Character select
I'm planning on making a large dream with multiple levels and would like to give the player a choice between two characters. So far I have a main menu screen with a level select part and my two characters there, I have it hooked up so that when the player chooses who they want and possesses a character it activates the level exit door, then links into the start of the first level.
What I would like is for whichever character they pick to carry over to the next level, and any levels after that, but I have no idea how to achieve this. I have tried messing around with variables but don't really understand how they work. Prefferably I would like it to only spawn whichever character the player has chosen without having to place both players in every level and taking up needless thermo space.
-
You are right about the variables ....get a variable gadget and change the name of it to "character select. Set the minimum value to zero and the maximum to 1 ... Then click the option "persist in dream". This variable has to be in every scene. in your logic chip where you made the selector for your Chars, stamp a variable modifier open the tweak menu and put the name of the variable (character select) there click the set option and set it to 1 ....basically you want one of the selections to set your variable to 0 the other stays by default on zero
For your next scenes I would suggest using two emitters each holding one character ... Wire it up with a variable modifier set to "get" , the name "character select" and let it run through a calculator to check if the variable is 0 or 1 .....wire the results to the wished emitter....I hope this was helpful ...otherwise text me , and I can try to help you ingame :) -
Sorry accidently flagged the post :((
-
'@Mr_BuggyB: Good comment. Thanks for helping the community!
Just FYI, the variable doesn't have to be in every scene for it to keep the value. You only need it in a scene if you're reading it or modifying it in that scene.
iniciar sessão para comentar.