Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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
for example i have global variable Health=100
i want when i press a button to add to Health +5%
can someone help me ?
5% = 5/100, or 1/20.
So on button pressed, set health to health+(health/20).
it works but has 420.25 and on 3th click text disappears
Develop games in your browser. Powerful, performant & highly capable.
i did the box bigger but now on the 4th click disappears
Eventually with percentages you will get a non even number, with a lot of decimals that won't fit into your text box.
You can make your text box bigger, or try using floor(number) or round(number) instead to get rid of the decimal value.