I Opened The Door, But Can't Walk Through It

Started by Rainbow Guy, Mon 02/08/2004 18:36:08

Previous topic - Next topic

Rainbow Guy

O.k, I've created a couple of ajoining rooms, and i have a Door that disapeares when you use a key on it (crummy, but i'm new) what i need to do is extend the Walkable Area after the "Door" object disapears (i'll animate it later) But all i could find is "Room - Enable Hotspot".

So whats the best way of exstending the Walkable Area after an event has happened ?

Rb

Ishmael

Draw a walkable area there where you want it to appear, then, in the Player Enters Screen (before fadein) select Run Script, Edit Script, and type in:

RemoveWalkableArea(x);

(Check manul for the command just in case) where x is the walkable area number.

Then, when you have opened the door with the key, put in a Run Script interaction event, Edit Script, and type in:

RestoreWalkableArea(x);

(check manual on this one too, my memory isn't the best on earth) where again the x is the walkable area number.
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.

Rainbow Guy

You memory is pretty good, i was able to get it form that

Thank You  :)

Rainbow Guy

O.k. bare with me here, i created a Door as a charactor, and it swings lovely, but i just can't line the door up with the frame, i also have a Door object so i thought i'd be able to get the Mouse pos/Odject pos off that, but when i use them they don't line up, whats going wrong ?


(and am i doing right creating the door as a charactor ?)

Gilbert

Remember, the base coordinates used by default for objects and characters are different.

For object, the coordinates is at the bottom left corner, for character, it's bottom middle.

Snarky

Answering your question, the door almost certainly doesn't need to be a character. You can achieve the effect with an object.

Scummbuddy

I merged both your topics. Please, if the question is essentially the same, keep it in the same topic. Don't post new threads... your question will get answered.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Ishmael

If you still got the problem, if you provide us with a screenshot and vital information on object etc. coordinates and the script you have used to open/close the door, we might help solve the problem easily.
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.

Radiant

And you can drag objects in the editor. A door should be an object, and you may want to set it to non-clickable and draw a hotspot around it (because otherwise, you may not be able to close it if the door-opened graphic is mostly transparent)

SMF spam blocked by CleanTalk