Tshirtbooth Health bar project question - Change colour?
Hi folks
I have successfully added the good old health bar from this video and copied his example and make the colour green and it works a treat!
My question is...
Is there a way to change the colour to different colours at different value as the health bar drops.
I would like it so that it starts purple (Easy -Set on the actor as purple) but as it drops 20 units the colour changes to a different colour.
How could I do this...any clues. Been trying for a few hours now and no joy
Thanks
I have successfully added the good old health bar from this video and copied his example and make the colour green and it works a treat!
My question is...
Is there a way to change the colour to different colours at different value as the health bar drops.
I would like it so that it starts purple (Easy -Set on the actor as purple) but as it drops 20 units the colour changes to a different colour.
How could I do this...any clues. Been trying for a few hours now and no joy
Thanks
Comments
____________
http://www.thatgameforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/
http://gamesalad.com/wiki/
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./Home.html
http://www.gamesalad.es/
http://thatgameforum.com/threads/gs-videos.360/
my email: calvin9403@hotmail.com
my skype: calvin9403
what i've do is a rule
attribute - game.health <40
change attribute -game.health / to self.colour.red
nothing happens when I do this, the bar still shows green when it drops below 40...
Any clues?
First off you need to change the self color attributes. Next ,Gamesalad uses rgb color. Which means if you want to change the color, mostly all the time youll have to change all the color attributes, since its a mix of red, green, and blue. So in your case this is what you want to do:
Go into the actual health bar actor. Make a rule when attribute game.health is < 40
then put a change attribute behavior. Where u select the attribute in the drop down at the bottom youll see the name of the actor your in, thats where u get self attributes. So click that then go to color, red and change it to 1.
Next have another change attribute behavior and change attribute self color blue to 0
then finally have another change attribute behavior and change attribute self color green to 0
Cheers mate.
is it self.color.red=1 or self.color.red.1 asi can't get it to work?
What I have is an attribute where the health bar is set at 10, just like in the tshirtbooth video. I've basically copied all the same stuff but changing the 'attribute' of game.health <40 doesn't seem to change anything?>
Any idea John?
Look at the second to last post on that thread.
That didn't work...damn
John can you PM me your email address and i'll email it to you