Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Goldmund on Sun 15/01/2012 21:41:39

Title: character.on ????
Post by: Goldmund on Sun 15/01/2012 21:41:39
Hey,

some people had problems with my game. The editor gave an error message in one instance which pointed me towards solution -- one character somehow is not "on".
Now, I've fixed their problems with doing character.on=true in global rep exec, but I have absolutely no idea how it got "off". Is it some new feature? When does it kick in?
Title: Re: character.on ????
Post by: monkey0506 on Mon 16/01/2012 00:27:03
There's a room setting "ShowPlayerInRoom" or something to that effect, only settable in the editor. It effectively just sets player.on to the value selected in the editor.

Character.on was never officially supported for use by the end-user, but several modules have used it effectively in place of a Character.Visible property.
Title: Re: character.on ????
Post by: Arjunaz78 on Tue 17/01/2012 17:47:39
Yeah i'm facing the same problem too,it's annoying & so confusing when i've already set the "ShowPlayerInRoom" in room property to "false" but when running the game,a player character has visible in the room although i already set it to off/false.

But i can go through that when i just move the player character in the room to go off the screen (room) display (out of room coordinates that looks like the player character unvisible/disable).
Title: Re: character.on ????
Post by: monkey0506 on Tue 17/01/2012 19:09:05
If ShowPlayerInRoom is set to false then there's a script somewhere that is setting Character.on. Some modules do that for certain effects, but AFAIK they should all be using it in a fashion that wouldn't be forcing the player to always appear...in any case, as mentioned, you can set the character to an off-screen location in room_Load or the like if you prefer to do it that way.