Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rainbow Guy on Mon 02/08/2004 18:36:08

Title: I Opened The Door, But Can't Walk Through It
Post by: Rainbow Guy on Mon 02/08/2004 18:36:08
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
Title: Re: I Opened The Door, But Can't Walk Through It
Post by: Ishmael on Mon 02/08/2004 18:39:39
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.
Title: Re: I Opened The Door, But Can't Walk Through It
Post by: Rainbow Guy on Mon 02/08/2004 20:41:53
You memory is pretty good, i was able to get it form that

Thank You  :)
Title: Door Doesn't Fit The Frame
Post by: Rainbow Guy on Mon 02/08/2004 21:41:03
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 ?)
Title: Re: Door Doesn't Fit The Frame
Post by: Gilbert on Tue 03/08/2004 02:50:17
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.
Title: Re: Door Doesn't Fit The Frame
Post by: Snarky on Tue 03/08/2004 03:48:52
Answering your question, the door almost certainly doesn't need to be a character. You can achieve the effect with an object.
Title: Re: I Opened The Door, But Can't Walk Through It
Post by: Scummbuddy on Tue 03/08/2004 07:11:29
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.
Title: Re: I Opened The Door, But Can't Walk Through It
Post by: Ishmael on Wed 04/08/2004 17:22:35
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.
Title: Re: I Opened The Door, But Can't Walk Through It
Post by: Radiant on Wed 04/08/2004 18:15:50
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)