character.on ????

Started by Goldmund, Sun 15/01/2012 21:41:39

Previous topic - Next topic

Goldmund

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?

monkey0506

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.

Arjunaz78

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).
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

monkey0506

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.

SMF spam blocked by CleanTalk