I'm trying to have a UI above the player update when the player moves over an object that can be "picked up". But I’m having trouble with it.
When the player collides with a power-up or gem, a sound effect should play. The sound is not playing, nor is the UI updating to reflect the changes.
Can anyone help me figure out what I’m doing wrong or link me to an answer for reference? I’ve looked around but couldn’t find anything.
- Here’s my code: https://pastebin.com/b8yU00Tk
- Here’s a screenshot of my scene dock: https://imgur.com/a/dh5Nrdd
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.