How do I make a character skin selection all based on the same hierarchy?

0 favourites
  • 2 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • So I'm making a top down shooter, and thinking on how to make different character skins. Since all the characters are roughly the same shape, I was thinking that I would have the base of the hierarchy would be an octogonal shape, since that is the easiest for me for collision checks.

    Anyway, on top of the hierarchy would be a variable check, or maybe a dictionary check, to see if the player has acquired the skin, and then the player would be using their chosen skin.

    Anyone else done something similar? If there are better practices than relying on the same hierarchy, I would be glad to hear.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What I do is put all the Skin's Animations into one Sprite, with Animation Folders named after each skin:

    Then, you can Set the Animation by name Player.Skin & "_*AnimationName*".

    I would also suggest using a Dictionary for Skins, so you can simply loop through the Data Structure to determine which skins have been unlocked. The Skin that is currently being used can be an Instance Variable for the Player object.

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