Character Selection?

Get help using Construct 2

Post » Fri Dec 27, 2013 2:25 pm

Hey everyone!

I am currently trying to make a game that features 'character selection' that effects the character / control style the player controls. I tried to implement this though the manipulation of an instance variable associated with the player object and tried to set up a sprite change at the opening of the layout so that, depending on what value the instance variable had, the player sprite would change, however that didn't seem to work. I have since tried using different objects and associating them with families, but they don't seem to work either.

Does anybody have any ideas? Any help would be much appreciated!

Regards,
Pandemonium
B
4
Posts: 14
Reputation: 243

Post » Fri Dec 27, 2013 5:00 pm

Choose a character.
If ChooseCharac = 1 > Go To Layout > Create Player 1
If ChooseCharac = 2 > Go To Layout > Create Player 2

Should be as easy as that. Your way sounds like it's fine. Explain in more detail what the issue is and then someone can resolve it. Likely just a problem with the way you have implemented it / one of your events.
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Sun Dec 29, 2013 11:06 am

Alternatively, you can feed the value of the player into a global variable, then have it play animations as follows:

GlobalVariable = Bob
If Left button pressed >> Player play animation GlobalVariable&"Left"

This way you can have one sprite called Player with different animations like BobLeft, BobRight, FrankLeft, FrankRight, etc
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests