Collectable By Pshaf001


So I wanted to make an early start on working on the collectible. I was waiting for Ahmed to finish the movement for the player so I can then work on doing the collectible. Using the Chest sprite from Cainos Top-down basic asset pack. I managed to make a collectible mechanic for the game. The asset pack came with two styles of chest one open and one closed I placed the closed one on the map. 

So I used object collision to detect when the player touches the hitbox of the chest. If it detects collision then it will check that if the chest has already been opened. If this is false it will change the sprite to the chest open sprite and increase the score by one.

Leave a comment

Log in with itch.io to leave a comment.