How to add a new player skin
Back to ezysmashersThis guide will walk you through the steps to add a new Orange player skin to the EzySmashers game.
1. Server
Add a new value to theSkinType
enum located in the org.youngmonkeys.ezysmashers.common.constant
package::public enum SkinType { RADISH, STRAWBERRY, ORANGE; <--- .... }
2. Unity client
- Open the
LobbyScene
and select theCharacterSelect
game object. - Add the
idle
animation for the neworange
character to theanimator
component.
- Create a transition from
Any State
to theorange
animation with the appropriate properties.
- Open
Game2DScene
and selectMyPlayer
game object. - Copy the
CharacterSkin002
Blend Tree, paste it, and rename it toCharacterSkin003
in the animator component.
- Create a transition from
Any State
toCharacterSkin003
and set the transition properties:
- Select Blend Tree and update the motions to
character-003_idle
andcharacter-003_walking
.
- And that's it! You now have the new orange character skin ready to use in the game.