How do i make simple puzzles?

Started by Rohan, Sat 09/10/2004 07:28:53

Previous topic - Next topic

Rohan

I have a scene in which there is a branch overhanging a gorge with a sheep stuck in it. The puzzle is tying a rope to the branch and hooking it around the sheep, then pulling it up. What is the simplest way to make this puzzle? Preferably without scripting.

poop743

Here is an idea: Make another character. Run a conversation when you talk to that person. Only one option gives you an item you need.

ie. Your cvharacter needs to get off an island to save his brother. He needs a pass to rent a boat to leave the island. Have him haggle with the boat lady or something.

I used that puzzle once


Here is an easier idea. You need a key to leave the room. Draw a bookcase and many other things into the background. Make one of the bookcase shelves a hotspot. Set it so that when you look at one of theshelves and search it, you get a key.

BorisZ

#2
Pooping again, Poop?

Quote from: Rohan on Sat 09/10/2004 07:28:53
I have a scene in which there is a branch overhanging a gorge with a sheep stuck in it. The puzzle is tying a rope to the branch and hooking it around the sheep, then pulling it up. What is the simplest way to make this puzzle? Preferably without scripting.

It doesn't need lots of scripting, but some animations would be nice (tying a rope, hooking, pulling). For each action make an animation and use it when player performs it. It's all in the manual.
I must warn you that it could be tricky if it's your first game!

TheJBurger

Here would be an idea to do this puzzle.

First make your room and everything. Ten make a character and place his coordinates and room number correctly to where you want him. Then draw a hotspot where the branch is.
After this make an inventory item called 'rope' which will be number 5 for this demo thing. Alos make another inventory item called 'rope tied on branch' and make in number 6.
And then make an object that is a picture of a rope hanging from the branch downwards. Turn this object off. Also make an animation with this rope of the sheep getting pulled upwards and set it to view 3.

Ok, so on the interaction editor for the branch hotspot put under if Invetory item was used : "Conditional - if inventory item was used" and then set the number to 5 (the rope).

Then instead of "Do Nothing" under that, use Run Script (sorry, but scripting would be the best way for this one.)
Do a code similiar to this:
--------------------------------
MoveCharacterBlocking(EGO, ***, ***, 0); // Move EGO (i presume this is your main character, if not change it) to the coordinates under the branch.
//You could alos animate him tying a rope here too.
ObjectOn(0); // this object is the rope
// There are several ways to do the next section and this is one of them
LoseInventory(5); // Lose the rope in your inventory
AddInventory(6); // Rope on branch
--------------------------------

Then get in the interaction editor on the sheep character. Do if Invetory item was used : "Conditional - if inventory item was used" and set the number to 6 (the rope on branch)

Then add a run script again and do another code:
-------------------------------
MoveCharacterBlocking(EGO, ***, ***, 0); // Move EGO (i presume this is your main character, if not change it) to the coordinates to pull the rope in the right spot.
// Okay, so the object is going to turn into an animation of the sheep getting pulled up, so we want the character to disappear.
character[SHEEP].room=-1; // sheep can be changed to the correct character name.
SetObjectView(0, 3); // set rope to a animation view where the sheep gets pulled up.
AnimateObjectEx(0, 0, 0, 0, 0, 1); // Animate the object and wait for it to finish.
character[SHEEP].room=*; // * = to the room number of the gorge.
// Set the SHEEp's coordinates so the sheep is standing next to the main character.
character[SHEEP].x=***;
character[SHEEP].y=***;
// Now you can turn the rope off.
ObjectOff(0);
// And you can alos get rid of the inventory item
LoseInventory(6);
-----------------------

After this you should have the sheep standing next to you and you can continue your code however you want. Hope this helps. Ã, :)

Rohan

Thanks a tonne, people. I got the puzzle done, similar to JBurger but without the scripting. I made Two animations; one was with an empty rope, another with the sheep on it. When the sheep rope flies up, it turns into an empty rope and the sheep wanders away. Hoorah!

SMF spam blocked by CleanTalk