Doors

Started by Godwarrior, Tue 10/02/2009 23:03:13

Previous topic - Next topic

Godwarrior

I have a house in my background and I don't know how to make my character enter it. How do I Do it?

Ghost

Go to the room editor, create a HOTSPOT (over the door is a sensible place) and make a "use hotspot" interaction. In this interaction, you enter:

player.ChangeRoom(RoomNumber);

(where RoomNumber is the number of your "inside" room.) This allows you to enter the house by using the door.

More information about the fun you can have with hotspots is in the game manual if you find this too brief- the tutorial explains them in detail, and you can also check them via index search.  ;)

Khris

Also, do the tutorial in the manual.

If you want the door to visibly open first, use an object instead of a hotspot and animate it if it's interacted with.

rbaleksandar

You can also add (with the animated door) an animation of your character walking to and through the door, and disappearing in the house.
I am a mighty pirate. Arrrrgh!

Ookki

What's the easiest way to make a closed door not walkable and an open door walkable? What I mean is that I don't want to "use"/"interact" with an open door to get trough it I just want to "Walk to" it.

Khris

Split up the walkable area into two separate ones and use Restore/RemoveWalkableArea() to switch it on/off.

Helme

I like to work with regions. Assign that the player changes to room, when we walks over the region.
By opening the door, you activate the region, by closing you deactivate the region.

SMF spam blocked by CleanTalk