Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: morganw on Mon 25/06/2018 20:56:52

Title: Equivalent of player.on
Post by: morganw on Mon 25/06/2018 20:56:52
Code (ags) Select
player.on

This seems to be valid in the compiler, but I can't find an equivalent property which is documented.
Is this effectively the same as the room setting to show the player character? If so, I can't find an equivalent to check if the player is visible or not.
Title: Re: Equivalent of player.on
Post by: Crimson Wizard on Mon 25/06/2018 21:32:38
I do not think there is direct equivalent property, this is something missing.

Also, this is rather "Enabled" than "Visible". From the looks of the engine code, not only character is not displayed if "Character.on = false", but even not updated (does not move, does not progress animation).

Quote from: morganw on Mon 25/06/2018 20:56:52
Is this effectively the same as the room setting to show the player character?
Yes, if room has player character disabled, then player.on is set to 0 at the room load.
Title: Re: Equivalent of player.on
Post by: morganw on Mon 25/06/2018 21:35:41
Thanks!