Hi guys, im making a local multiplayer game, and im trying to make like a Character selection screen. In this screen you are able to choose your character. This different characters just changes some variables values, like "SMALL character has 50hp and 20mana" and "BIG character has 100hp and 10mana". Then when you press play in this selection layout you go to the Game layout, in this layout your player should have the values of the character you picked in Selection layout.
So i want to have like an array??? that holds all the characters and the different values like hp, mana, speed, etc. So when the game layout starts, the player read the array and populate the variables with whatever character you picked.
Develop games in your browser. Powerful, performant & highly capable.
Yeah, so you would have the buttons to choose the character and give them a variable to use to find which values you get from the array, then when you initialize in the game layout, you get the values from the array based on that variable.
https://drive.google.com/open?id=0BzomH ... Wp0cUxkNTA
Thanks, so much, just what i needed for my project!!. Works like a charm