Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Hollister Man on Tue 06/01/2004 20:51:38

Title: Library and Ship puzzle
Post by: Hollister Man on Tue 06/01/2004 20:51:38
Every so often I come up with a puzzle that I like, but I have no idea how to make.  The most recent involves a library and a boat.  First, I would need to create a fairly large library, complete with the books randomized in the script.  

After the character figures out the first puzzle, I ould need him to "sail" to the destination.  This is the part I really need advice on.  I thought of making several objects/characters to appear to be the land and cloudas possibly even the sky.  You see, the character needs to direct the ship at a particular constellation.  Any advice on the implementation?  I can probably plug my way through it, but I'm kinda surfing for better ways right now.
Title: Re:Library and Ship puzzle
Post by: Dorcan on Tue 06/01/2004 21:00:57
Does the destination change randomly when starting a new game ?
Could you be a bit more specific about your puzzle, cause I don't really see the relation between the library and the "sail" thing...
Title: Re:Library and Ship puzzle
Post by: on Wed 07/01/2004 18:10:17
 :D
Sorry, typing without thinking again.  Basically, the player finds an ambiguous note.  He needs to go find some information at the library as to HOW to get there, but it is a circuitous route.  EG, Leave at noon, follow the sun until you reach an island, then turn and sail towards the draco constellation when darkness falls.  Basically, I am trying to decide how to simulate land, ocean, boat, etc.  I may even want to make the stars rotate like the real sky, so if you leave on the wrong day, you will end up getting lost.  I just thought of a map like this rather than first person.

(http://www.2dadventure.com/ags/world.jpg)
Title: Re:Library and Ship puzzle
Post by: Mr Jake on Wed 07/01/2004 20:16:19
Quote from: Hollister_Man on Wed 07/01/2004 18:10:17
:D
Sorry, typing without thinking again.  Basically, the player finds an ambiguous note.  He needs to go find some information at the library as to HOW to get there, but it is a circuitous route.  EG, Leave at noon, follow the sun until you reach an island, then turn and sail towards the draco constellation when darkness falls.  Basically, I am trying to decide how to simulate land, ocean, boat, etc.  I may even want to make the stars rotate like the real sky, so if you leave on the wrong day, you will end up getting lost.  I just thought of a map like this rather than first person.


hmmm...... It can be done with global ints :P

For example there is an int to say which day it is and on each different day a different star pattern (you would need to make 7 rotations) appears
Title: Re:Library and Ship puzzle
Post by: Dorcan on Wed 07/01/2004 20:48:33
Mmh stars "rotate" around the axe of the Earth, they don't move, so leaving a day or another doesn't change anything.

I just had some ideas, I'll show you some pics I made quickly :

Ok that's when the player is on the boat. He can choose to look at the map or change direction.
(http://www.digitalmindstudio.ch/images/trucs/holli02.jpg)

After having found which constellation "draco" is, he must choose the direction by moving it in the center of the binoculars, and then click on "go this direction"
(http://www.digitalmindstudio.ch/images/trucs/holli01.jpg)

The map...
(http://www.digitalmindstudio.ch/images/trucs/holli03.jpg)

It was just some ideas that poped in my mind :D
Title: Re:Library and Ship puzzle
Post by: Cerulean on Fri 09/01/2004 10:23:13
I think a better way would be to apply the looping room script to a panorama, and walk a boat character around it to simulate rotation, keeping the camera centered on the boat. When the motor is clicked, run the "boat is moving" animation, and if the boat is pointed in the appropriate direction (that is, sitting in the right place on the looping background) you can make an island slowly rise over the horizon (or sink if it's behind you).