Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: monkey0506 on Wed 13/09/2006 08:57:11

Title: Something of a silly question...Character.on vs. Character.Visible
Post by: monkey0506 on Wed 13/09/2006 08:57:11
It's been around since...as long as I can remember, it's hidden from the autocomplete, and it's not documented, however all over the forums it's been said you can use Character.on to (un)hide a character (by setting it to 1 or 0).

I was just curious...in my pseudo-insomniac state...why hasn't this ever been implemented into a Character.Visible property? I assume, based on the fact it's hidden and undocumented, that it's used internally by AGS, but if we're telling people it's safe to use it, wouldn't these both serve the same end-purpose?

Well...that's all really. Thanks.
Title: Re: Something of a silly question...Character.on vs. Character.Visible
Post by: Pumaman on Wed 13/09/2006 21:36:12
It's not officially supported because I haven't tested that it's safe to use -- for example, that GetLocationName, GetCharacterAt, and related functions work properly when "on" is turned off. One day it probably should become official.
Title: Re: Something of a silly question...Character.on vs. Character.Visible
Post by: monkey0506 on Wed 13/09/2006 22:21:51
Okay...thanks Chris.

BTW, I'd just like to say now that I for one would support an official property. ;)