My objective for today was to finish my game by implementing collectible coins that would increase the player’s score and tutorial text to teach the player.



I also adjusted the coin collisions in photoshop, so they were much more accurate to the visuals.




Setting the coins as a physics group allowed me to run the same methods on all coins each frame rather than specifying it to a single sprite.



I originally attempted to use the indented method to play the animation every 6 frames, however I chose to use the much simpler “setInterval” function that I had learnt in the early development stages of creating my platforms.


Initially it would only increase the score by 100, however the constant updating of the score would make it difficult to notice.


This results in randomly spawning coins that increase the score and a persistent tutorial detailing the game’s basic mechanics:
