Hi guys!
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!
THANKS!:)
CurrentHP and MaxHP are both Instance Variables of an object called enemy. Does that help?
Thanks!
but way *50?
Develop games in your browser. Powerful, performant & highly capable.
That's the maximum width it will draw the bar when Current/Max = 1. Everything else is a proportional fraction of that width.
blackhornet
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)
lukedirago
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?
yonda
Yeah!
help... pls :(
can post your .capx please
Thanks Guys!
It works!LOL
Hey Guys!
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