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
It takes a Zombie to know a Zombie!!!
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?
It takes a Zombie to know a Zombie!!!
It takes a Zombie to know a Zombie!!!
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
It takes a Zombie to know a Zombie!!!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Cheers mate.
It takes a Zombie to know a Zombie!!!
is it self.color.red=1 or self.color.red.1 asi can't get it to work?
It takes a Zombie to know a Zombie!!!
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?
It takes a Zombie to know a Zombie!!!
It takes a Zombie to know a Zombie!!!
It takes a Zombie to know a Zombie!!!
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
It takes a Zombie to know a Zombie!!!