There are multiple gems in my layout i would like the progress bar to fill when player picks up a gem can you help me out with this one?
Create a global variable for 'Gems' if you havent already.
When your player sprite is overlapping gem sprite, add 1 to 'Gems'.
Every tick, set width of 'progress bar' Sprite to 'Gems' Value.
Here's an example:
Live example in browser
Here's the associated capx:
Like this below is link
https://www.dropbox.com/s/jug6444ywujde ... .capx?dl=0
Frostein the amount of gems are different in each level, i want the par to fill up 100% when all of the gems in the layout have been picked by the player.
Develop games in your browser. Powerful, performant & highly capable.
set the width as a percentage. There are a few health bar tutorials knocking around, they work the same except subtracting from the bar.
Somebody help me out
garyrossiter here this is simple
https://www.dropbox.com/s/0uv0mtkquzeml ... .capx?dl=0