Page 1 of 1
Player Hit- Bright flash
Posted:
Mon May 21, 2007 4:31 pm
by d-soldier
Instead of the common transparency thing happening when the player is hit:
if(Player_Hit == 1)transp = .5;
if(Player_Hit == 0)transp = 0;
Player_HitWait -= 1;
if(Player_HitWait <= 0)Player_Hit = 0;
I've been trying to have the rgb values increased using the same variables.. but I cant seem to get the desired result... Anyone know how to make it go white, and then back???
Posted:
Mon May 21, 2007 7:46 pm
by dimster
im not sure but you could try to make it change animation when hit.
(might be worth a try)
Posted:
Mon May 21, 2007 8:47 pm
by d-soldier
I have too many different animations during the actors movement, chaning the animation to something brighter would be an obvious problem... just need someone with better understanding of scripting to address how to increase the brightness through rgb values (or other way) like above with transparency.
Posted:
Mon May 21, 2007 11:55 pm
by Game A Gogo
GE used to be able to do this, but it would screw up cuz then, you would be stuck whit a white actor...
All I can suggest is making a mask actor?
Posted:
Tue May 22, 2007 11:35 am
by DilloDude
You cannont change the colour to white using rgb values. Depending on the colour of the actor, you may be able to alter it to dark grey. If your actor is mainly one colour, you can make it all grey-scale and change the colour if you want. You can make it completely black by setting r, g and b to zero. Or you can make it full colour, by setting them all to 255. Or somewhere in between to darken it. To make it a reddish tint, set g and b to zero. Play around with the colours until you get one you like (you may want to get the rgb values from a program like paint, because it's easier to chose a colour).
Posted:
Tue May 22, 2007 3:08 pm
by d-soldier
Yeah, thats pretty much the result I've been getting... thought i was not working the values correctly. Thanks for breaking it down for me, I'll find another way.
Posted:
Tue May 22, 2007 4:56 pm
by Sgt. Sparky
OI!!! I know!
use draw from with a canvas actor and modify values!
(make it transparent and grey[canvas actor] and make it black for the alternate flash!
)