How can i switch game charakter during a game?

0 favourites
  • 4 posts
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hi guys, is there any smart and easy way to switch game charakter during a game, much like a weapon switch?

    Cheers!

  • 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 😉

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • Thanks guys.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)