Transparency and making your character vanish (solved. Never Mind)

Started by jesternario, Wed 14/04/2010 07:45:18

Previous topic - Next topic

jesternario

So, I'm trying ot make it so a character and all objects in a room vanish. I figure I'd use transparency to make the character just not be there, but I'm still new (obviously) and don't understand.
So I thought I'd read up on transparency, but the entry on it in the Character functions section wasn't exactly clear. Also, I couldn't find info on it in the FAQs (perhaps I was merely looking in the wrong place?).
In otherwords, any input on the subject and what I'm trying would be nice.

tzachs

To make your character fully solid:
cEgo.Transparency = 0;

To make your character fully transparent:
cEgo.Transparency = 100;

To gradually make you characters/objects transparent:
Code: ags

int i=0;
while (i<100)
{
   cEgo.Transparency = i;
   oTable.Transparency = i;
   //etc etc for all objects you need
   Wait(3); //Change this value for different speeds
   i++;
}


For more advanced stuff you can use the Tween Module.

jesternario

See, I tried that. the game refused to accept it and I don't understand why.

jesternario

okay, it worked that time. I don't know why or what the problem was the other time. go figure.

SMF spam blocked by CleanTalk