View Single Post
Old 07-01-01, 17:32   #3
DaleR
Member
 
Joined: Jan 2001
Posts: 318
Post

OPENING A DOOR USING PUZZLE_ITEM6: The Hand of Orion

(After keying this in, I checked it by reading it and doing it as I did. It worked, so must be I didn't leave anything out.)

Let’s use the Tut1.PRJ since we both have a copy of it. When you load it, be sure you are in the “First Room.” Lara should be there. Keep the orientation with the 2 large doors on the right side of the room. In the Plan View (top left), click the violet squares in front of the 2 doors. When it reads “Trigger for Door Type1,” click your keyboard Delete key to delete the trigger. Click the violet squares again and when it reads “Trigger for Door Type2, again click Delete. Now we have two doors with nothing to open them.

We now need to select each of the doors. In the Plan View (top left), left click the black squares on the left that is the doorway. When there’s a green border around them, click them again with the right mouse button. This will move you to the connecting room that has the doors. Click on one of the doors – it should turn red when selected. The text to the left of the Violet button in the Room Edit section (left side above Object Panel) should read “TRIGGER(x:x) for DOOR_TY.” (The x’s will show as numbers.) Now, click the black door squares on the left side of the room in the Plan View. When there’s a green border, right click the squares to move back to the First Room again. In the Editor Window, use the arrow keys and the PageUp and PageDown keys to get so that you are viewing the room from overhead with the doorway on the right. There are 4 pillars in the room. Click the floor square that’s immediately to the left of the bottom right pillar. (This is done in the Editor Window and not in the Plan View!) It should turn red. Now click the Violet button. This will set a trigger for the door you selected to this floor tile. Now the other door. Click the black door squares in the Plan view and then right click to go to the adjoining room again. Click on the other door to select it. Click the black door squares on the left side of the room in the Plan View and then right click them to move back to the First Room. Click the same square to the left of the pillar and then click the Violet button. This sets a trigger for the other door to this tile as well. If you built the game now, stepping on this tile would open both of the doors.

Next, in the text window below the Place Object button, click and scroll down to “Puzzle_Hole6". Click it and then click Okay. Click the Place Object button and then click the same floor square to the left of the pillar. This will place the object on the side of the pillar. Remember that you can rotate placed objects by right-clicking them. The text to the left of the Violet button should read “TRIGGER(0:0) for PUZZLE_”. Click the floor tile to the left of the pillar to select it. It should turn red. Now click the Violet button to set the trigger for our Puzzle_Hole to this floor tile. Let’s stop just long enough to check our work. In the Plan View, click on the violet square to the left of the pillar. Each time you click the square it will show you what’s there. You should find triggers for both doors, a trigger for the puzzle piece, and the puzzle piece. Click this square until it reads “TRIGGER(0:0) for PUZZLE_HOLE6.” The text to the left of the Violet button should read “TRIGGER(0:0) for PUZZLE_.” Click this text box to bring up a Pop-up menu. In this menu, click the white text area to the right of the word “Type.” In the next Pop-up window, select “Key” and click Okay. Click Okay on the other Pop-up menu.

Now, none of the triggers on this floor square will activate until the “special” trigger that was set to “key” gets activated. Putting the puzzle piece in the hole will activate it. Now, click the text box below the Place Object button and scroll down and select “PUZZLE_ITEM6.” Click it and then click Okay. Now, let’s put the Hand of Orion behind one of the pillars out of sight. Click the Place Object button and then click any floor square where you want to put it. You’re done!

Save the project using some other name and then go through the normal steps of creating a game using this project. When you pick up the Hand of Orion and then put it in the hole on the pillar, both doors should open.

Whew! Have fun.

DaleR is offline   Reply With Quote