Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: Scigeek2003 on September 11, 2003, 10:07:29 PM

Title: I'm a newbie, and I am having trouble with doors.
Post by: Scigeek2003 on September 11, 2003, 10:07:29 PM
I need help connecting the levels in my game, I have stumbled upon it before, but I cannot remember how to do it.
I am trying to use the green control color, but when I go into the doorway but nothing happens. :'(
Title: Re:I'm a newbie, and I am having trouble with doors.
Post by: Eigen on September 11, 2003, 11:19:08 PM
Check if your door instance is something like this:

(instance aDoor of Door
  (properties
    y 150
    x 150
    view 22
    entranceTo 10
    )
)

then check are the door control colors right. (Navy for the area where player can open the door, yellow for blocking ego to walk trough the doorway unless it's opened and dark green which takes player to the room specified in the door instance.

Then use:

(if(Said('open/door'))
(aDoor:open())
 
and walk trough the doorway. This should do the trick.



-Eigen