How do I change player's skin?

  • Hey guys!

    I tried to search for some topic, but none of them trully answered to my question....

    I have 4 types of player's skin and I want them to change after reaching some score or after purchasing in the shop.

    Do you have any ideas how to do that?

    And another problem, can I do some random pick from 3 backgroungs on every start of the layout (something like flappy bird had)?

    Thanks for all your answers and help.

  • Really depends on how you are changing the skin color.

    on event trigger change.


    on start of layout

    Background choose(0,1,2)

    where 0,1,2 are avaible backgrounds

  • Well, if your player has different animations like Stand, Walk, Jump, you can make it so the player has Skin1_Stand, Skin1_Walk, Skin1_Jump, Skin2_Stand, Skin2_Walk, ... Just do this for as many skins as you have. Make a new instance variable for the player called something like Skin. Then when the player reaches certain score set the Skin instance variable to equal Skin1, Skin2 or how many skins you have. When playing player animations you just need to put Player.Skin (the variable) & "_Stand" and so on.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot guys! You helped me a lot!

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