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?
Cheers!
B
4
Posts: 2
Reputation: 204

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 😉
B
17
S
4
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.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Thu Oct 19, 2017 6:18 am

Thanks guys.
B
4
Posts: 2
Reputation: 204


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, dop2000, tarek2, Yahoo [Bot] and 47 guests