i would need to make grow a level bar for a game in percentage (or pixels)
Tks very much
There was a percentage counter that I was playing with a while ago.
have a look at this and see if it can be adapted to your needs.
why not use a timeline¿ gototime or continue playing …
it’ll work for simple usecases
Beautiful this feature, but I would serve something that functions as I described in the example.
This is only a sample image.
Hi Alessio @ibelievecorporation
You can change the action to whatever you want. A button click, a mouseover, etc.
I did not mean to enter numbers in a text field.
The game provides the different scores, each element is associated with a value.
Imagine a pinball with elements that mark different scores. Instead see a number like running score I need something to make me see the score with a bar score, not a number.
So if the first try can do a partial score of 0 points or 35 points (only 2 possible scores) at the second attempt, the bar will start from the result that comes from the first attempt.
the example works, you just have to adapt it by adding the event you wanna catch to increase the progressbar
The “entering numbers in a text field” is just one of many ways to increase the bar. You can do it onclick or use your own function. This is just to show you a way of achieving what you want. I don’t really have the time to write a specific script for your specific needs. If you supply a document showing what you’ve done then people will try and help you.
You asked for
I told you and gave you an example
Again I showed you how to do this.
Instead of an input area you can change it to a button or like I said a specific function. So, in your example of a pinball game. When your function for the action of hitting an element is called you can include the method above so that a bar will increase by a specific amount and the text will reflect that.
Or you could even go to a time in a timeline to achieve a similar effect like @h_classen said. Just have a symbol that represents the bar and play an animation when an element is hit.