Equivalent of player.on

Started by morganw, Mon 25/06/2018 20:56:52

Previous topic - Next topic

morganw

Code: ags
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.

Crimson Wizard

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.


SMF spam blocked by CleanTalk