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
I am trying to develop a Tower defense game for touch devices.
<img src="http://content.screencast.com/users/karlvenus/folders/Default/media/80c3e523-454b-44a7-981d-7cbfdd9aef44/life.png" border="0" />
I cant understand this code...help!
CurrentHP and MaxHP are both Instance Variables of an object called enemy. Does that help?
but way *50?
That's the maximum width it will draw the bar when Current/Max = 1. Everything else is a proportional fraction of that width.
THANKS!You have some sample of it like capx.?
so that i have some reference... :)
This is a previous example:
Creating Progress Bars
Event 13 uses the same calculation.
Just in case to clarify a little bit more without looking at the capx:
When life is 1, the bar width will be 50 (50*1=50)
When life is 0.5, the bar width will be 25 (50*0.5=25)
When life is 0, the bar width will be 0 (50*0=0)
Thanks! I have one more problem is
why my Current/max is at the middle of the monster, instead on the top...
have you set the imagepoint on top of the enemy?
Develop games in your browser. Powerful, performant & highly capable.
help... pls :(
can post your .capx please
I have a little bit problem...
how do i set this?
<img src="http://content.screencast.com/users/karlvenus/folders/Default/media/fc97288a-2081-49e1-9b1e-b983c1dcc434/life1.png" border="0" />
can you post your .capx please