Helo guys help me please
I want to do a Xp bar but im havin troubles about how to construct bar size when we win Exp. Bellow follow my images.
How I did on my Construct2
Here how it works on web
My code
My Exmple File: https://www.mediafire.com/file/9skajub6 ... ExpBar.zip
I want to do something that each Xp the bar grow up right his size.
Could someone help me please?
Just change the last line in your event #4 to this:
barra -> Set width to (XP/XPMAX)*Sprite2.width
You can add min() or clamp() so it won't grow bigger than the Sprite2.width:
barra -> Set width to min((XP/XPMAX)*Sprite2.width, Sprite2.width)
Develop games in your browser. Powerful, performant & highly capable.
Thanks My Bro thats really worked!!