How do I store different characters

Get help using Construct 2

Post » Fri Jun 23, 2017 12:30 am

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.
B
29
S
4
G
1
Posts: 23
Reputation: 2,791

Post » Fri Jun 23, 2017 2:35 am

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.

Edit:
https://drive.google.com/open?id=0BzomH ... Wp0cUxkNTA
B
42
S
14
G
3
Posts: 165
Reputation: 5,115

Post » Mon Jun 26, 2017 9:50 pm

Thanks, so much, just what i needed for my project!!. Works like a charm
B
29
S
4
G
1
Posts: 23
Reputation: 2,791


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests