by Fuzzy » Sun Nov 04, 2007 11:15 pm
in your global code, type this:
#define TRUE 1
#define FALSE !TRUE
create a variable for your player, ShowStat
make it an integer
if only the player actor needs it, make it global, to save memory.
select player...create actor.... script.... put this line:
ShowStat = FALSE;
now, in the key down event for the i key, you put the first line like this:
ShowStat = !ShowStat;
transparency = !transparency;
Thats it. It will flip the state whenever you press i. Its considered proper programming to use all capital letters with #define, and it never uses ; at the end of a #define line.
Pretty simple, huh?
Mortal Enemy of IF....THEN(and Inspector Gadget)
Still ThreeFingerPete to tekdino