Every tick : set health.animationframe to global variable. You pick it from the object, set frame.
I tried, but i think I may have not done something correctly?
nah you'Re still adding 1 to life after changing the healthbar
here is a simplified version using tiledbackgrounds
healthbar tiledbackground
Thanks buddy, but i cant open these - there just a bunch a files?
click download top right the bunch of files is the structure of the zip or the .c3p format which is a zip like format with its own name. there should be a download arrow in the right side of the files list near login or + right. downwards arrow. u will need C3 to use this though.
Develop games in your browser. Powerful, performant & highly capable.
Hi, O yeah, thanks man. Like the way this is done, you used a more mathmatical approach. It works well. Please can you explain what this is though? why 4-1, does that mean between 1 and 4 or is it 4-1.
Thanks, this is good stuff.
This is a simple 2 event version, I tried to keep it as simple as possible.
http://www.sizzle-games.com/hearts.c3p
that is just 3 .... i was rushing the example and there was a glitch when value 4 was in place...
but that was cause i used smaller or equal if u swap to <4 instead of =<3 or =<4-1 would work the same also.
and thanks that is actually a old example r0j0hound shared a long long time ago around C2 forum. i liked how was made so i kept it in my examples also. saves a lot of trouble when comes to using lots of frames for a simple animation.
This is a simple 2 event version, I tried to keep it as simple as possible. http://www.sizzle-games.com/hearts.c3p
Thanks buddy, that makes sense. Did you have a global variable in there?
And what does this symbol mean - &
Thanks
is just how u use a text >
and a variable >
together in Construct in a text object or any text object that displays stuff.
ahh i see, thanks man, I think I was over complicating that one!