hi!
i have a progress bar in my game and im trying to make it so that every time you collect a gem the progress value +1. so far i have set the maximum value to 4, (there are only 4 gems so far) and when the player collides with the gem, the gem destroys and now i need to make the progress value +1. i tried making an instance variable called progressvalue, and when the player collides with the gem the progressvalue variable adds +1 value. i was wondering if i could now connect the instance variable value to the progress bar value, if that makes sense.