Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: jesternario on Wed 14/04/2010 07:45:18

Title: Transparency and making your character vanish (solved. Never Mind)
Post by: jesternario on Wed 14/04/2010 07:45:18
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.
Title: Re: Transparency and making your character vanish
Post by: tzachs on Wed 14/04/2010 09:59:32
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:

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 (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38015.0).
Title: Re: Transparency and making your character vanish
Post by: jesternario on Thu 15/04/2010 04:06:04
See, I tried that. the game refused to accept it and I don't understand why.
Title: Re: Transparency and making your character vanish
Post by: jesternario on Thu 15/04/2010 04:08:57
okay, it worked that time. I don't know why or what the problem was the other time. go figure.