How can I hide a character?

Started by placyd, Wed 07/01/2004 17:41:03

Previous topic - Next topic

placyd

I want a character not to be in a room, just after i do something.
And i dont want him to walk in, just to appear in the middle of the room.
How can i hide him?
I try to make him transparent, but i can make interactions with him - but i dont want to.
I want something like remove/restore walkable areas - but with characters - someone help me!

Darth Mandarb

Well you could make him invisible as you suggested and use the SetCharacterProperty command to make him non-interactable.  Like this:

SetCharacterProperty (EGO, CHAR_NOINTERACTION, 1)

This is a property you set in the character editor (either 1 -or- 0 for on -or- off)  So you can set it up so that the character is invisible and isn't interactable at first, then when you do what you need to do, you set him back to interactable.

- Another possible way would be to have him located off-screen and then use MoveCharacterDirect when the goal is accomplished.

- Or even another way would be to add an object that covers the character and when you accomplish the goal you just remove the object.  The object would just be a square identical to the ground below.

I think the first option is the most elegant!

Hope this helps!

])]V[

Proskrito

or just make him start the game in room -1, and then make it appear by putting something like
character[CHARID].room=X , X being the room you want it to appear in.

placyd

 :D

Thank you both!

Its working!

Ishmael

There's also an undocumented way, I'm not sure how it works exactly, but you can use the character[CHARID].on global variable. Just set:

character[DUDE].on = 0;

and they should be invible/uninteractable. To set them back, use:

character[DUDE].on = 1;

I believe.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk