How can i switch game charakter during a game?

Get help using Construct 2

Post » Thu Jul 27, 2017 10:59 pm

Hi guys, is there any smart and easy way to switch game charakter during a game, much like a weapon switch?
Posts: 1
Reputation: 177

Post » Tue Aug 08, 2017 8:13 pm

Do something like on button A pushed destroy character 1, character 1 spawn another object which will be character 2. That should work and long as you have character set up with everything needed to move like the first character you should be good 😉
Posts: 86
Reputation: 1,211

Post » Wed Aug 09, 2017 2:04 am

The way I do it is to make all characters as one character... use different animation sequences and name them accordingly - then you can simply change the animation sequence to be a totally different character.

Otherwise, as @mikewalton206 has said you can have multiple character objects and just destroy one and create another in it's place. It really depends how your game idea works though, since you might have some variables to duplicate or some other data that would be affected if you just destroy the object.

Changing weapons is the same thing... I make all weapons as a single object and use different animation sequences to display the different weapon. Everything exists as the same object - I use an instance variable to decide what the weapon choice is, and what animation sequence to use.

Tired of crappy file hosts that are crappy? Get DROPBOX -
Posts: 3,032
Reputation: 30,474

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests