Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gold Dragon on Fri 23/05/2008 03:30:58

Title: How do you turn your character off?
Post by: Gold Dragon on Fri 23/05/2008 03:30:58
Ok I feel REALLY stupid asking this but I can't find out how anywhere!!

I want to be able to make my character disappear.  Isn't there something like cEgo.visable = false or player.visable = false some where?
Title: Re: How do you turn your character off?
Post by: GarageGothic on Fri 23/05/2008 04:09:55
If I don't misremember, there's an undocumented Character.on parameter, which can be set to true or false. For the player, this is the same as changing the ShowPlayerCharacter property in the room editor. You can also use Character.Transparency = 100 to make a character invisible.
Title: Re: How do you turn your character off?
Post by: monkey0506 on Fri 23/05/2008 06:18:12
Another option would be to set the character to some co-ordinates like (-1000,-1000).
Title: Re: How do you turn your character off?
Post by: Hainisoft on Fri 23/05/2008 07:54:26
Make a big walk-behinde area.
Title: Re: How do you turn your character off?
Post by: Radiant on Fri 23/05/2008 08:24:29
All of the above will work, as will changing the character's view or loop to something containing blank sprites.

Using transparency means the character can still be clicked on; the other options won't. Well, unless you have pixel-perfect turned off, but it's on by default.
Title: Re: How do you turn your character off?
Post by: Gold Dragon on Fri 23/05/2008 09:29:26
Thank you all  ;D I'll figure out which one will be the best way for me.