How do I make a character selection screen?

Get help using Construct 2

Post » Sat Aug 22, 2015 6:06 pm

Hello everyone!

I'm trying to make character selection screen where I can use two arrows buttons to scroll through different playable characters(sprite objects), and then have another button that scrolls through the different color variants for each character.

I initially thought that using an array would work best for this; I'd store the UIDs for the different characters along the X, and then the different color options along the Y. I made instance variables for X and Y in the array that change as I hit my 3 buttons. Then using those XY coordinate I set my global variable to the selected character UID. After this things got a lot more complicated, and my code gets horribly repetitive and cumbersome, and it seems to work as long as I stay in my menu layout. When I try to switch from my menu layout to my game play layout, things don't carry over well because of the different UIDS. I feel like my problem would be solved if I could store my object name in the array, but as far as I can tell, that isn't possible.

Long story short: How do I make a non-cumbersome character selection screen? Is it possible code one elegantly?

Any advice is a appreciated, thank you.
Posts: 1
Reputation: 207

Post » Sat Aug 22, 2015 11:14 pm

Hi Rennoc,

Maybe this simple tutorial for character selection can help you approach what you want:


Good luck!
Posts: 34
Reputation: 416

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests