Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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!!