How To Set Animations With Variables

It kinda works? I can change characters in the skin screen, but once I leave and start to play one of the levels or go back to the skin screen then it will bring me back to the default skin you would have

Lets say the default was Vanoss and i chose Delirious, if I were to go into a game it would bring me back to Vanoss
Desktop 2025.02.20 - 11.05.07.02

It seems to ignore the variable when I leave the skin screen and come back as well as gameplay screen


this screenshot is where an external event, that is connected to the game scene, is there something I am missing?

How do you change the scene - what action do you use?

1 Like

after when skin is chosen they press the back button/Menu button with a Change Scene to “Menu”

“Change to scene ...” clears out the existing scene (as in deletes all the objects and variables in the current scene) and starts up the menu scene.

When you go from menu back to thus scene, all the objects and variables are reset.

To avoid this situation, use global variables. They don’t change or get deleted when the scene changes. So change the variable “CharacterPick” from a scene variable to a global variable.

1 Like

I’ll try and have a crack at that now!

also just for clarification the only variable that carries over to other scenes is the global version?

Yes. Scene variables and object variables only exist in the current scene. Global variables exist for the entire game.

1 Like

It seems that it doesn’t work in general now, do I need to write something different for the bottom pic?
Desktop 2025.02.20 - 11.30.05.03(1)


Idk why this occured

In that last event, you are using the value of “Player.VariableString(CharacterPick)”, which is the object variable.

Replace that with just “CharacterPick”.

1 Like

IT WORKS!!! Thank you!

Ow i didn’t see replies so you can ignore my message

1 - you are using object vars where you should global vars
2 - It is

Player.CharacterPick

Not

Player.VariableString(CharacterPick)