When a play collects a specific collectible, I want a sprite in the HUD to change animation through matching IDs with the collectable. I just want to know how to do this.
Develop games in your browser. Powerful, performant & highly capable.
You can create a separate animation for each collectable in the HUD sprite and use IDs as animation names.
When an item is collected - set HUD animation to Item.ID