Character Sprite Activation


Since our character is able to move with both the WASD keys and arrow keys, I put in the "or" syntax so that either button pressed will activate the corresponding movement sprite. In regards to the character idle image, I did not activate it since our character will face the direction (have the correct sprite) that they stopped in. The only problem is that the sprite animation will still continue to play even if there is no movement. In the future, this could be solved using the Animator function in Unity so that the sprite animation only starts when a key is pressed and held.

Additionally, the sprite for the cauldron was included together with the inventory pop-up. When the player hits tab and opens the inventory, the cauldron sprite will appear, which makes it so (as of now) the player can assume that the ingredients go in the cauldron to craft the potions.


Leave a comment

Log in with itch.io to leave a comment.