Map Screen?

Started by DCillusion, Fri 17/10/2003 19:50:57

Previous topic - Next topic

DCillusion

How do I create a map screen.  Let me explain the problem.

I need  players to be able to access a particular room.  I can get the players to this "room" at any time, but how do I allow players to return to the room they were in previously if they want to go back.

Example:  1st Gabriel knight map screen........The back button allowed players to return to the screen they were just at if they didn't want to leave.

How do I do THAT?

CB..

#1
give yur self an inventory item (small picture of the map) use the pink poster to save time or to test this

set this up in player character interaction

when yu use the inventory item/map on yur self
choose the take player to another room interaction


this room will use the full sized map image as the background;

then just place regions or hotspots that when clicked on will take you to the other rooms yu want to reach

disable character view in the map room options if yu dont want to see yu character on the map..or change the player view when in the map room to perhaps the red cross sprite

in views
create new view (note the new view number)  click on the frame  wording and double click on the red cross sprite in the default/main sprite list (then write this number in the room settings character view box)

then when yur in the map room yu can walk yur target red cross around the map with a walkable area and arrange the hot spots/regions on the map to correspond to whichever room yu want to go to...

etc

if yu have trubble going to the rooms in the wrong place use the "go to room at  x and y" interaction

have unlockable rooms on the map by having hot spots regions set up as
"if player has inventory item then go to room.."
meaning that certain rooms wont be reachable untill yu find item x or whatever..


mind yu having re read the question im not entirely sure thats what yu meant?


if yu want the characters to enter the map room..then after a few seconds return to the old room automatically then yu need to have the characters appear on the map screen in diferent places according to what room they came from (go to room at x y) and set up a region there that as soon as they walk of it (when player walks of the region) they are sent back (go to room) to the room they just left...  

DCillusion

The problem I'm encountering is I would like to set up the map room so that it has a scripted hotspot that returns the player to the previous room they were in.

Example: Map = room 4

if the player enters room 4 from room 1, hotspot returns player to room 1

if the player enters room 4 from room 2, hotspot returns player to room 2

I could set up a map room for every single room in my game; and it would work, but that sounds woefully tedious.

CB..

yep it would be very fiddly if yu have a lot of rooms..

but from what ive read here in the forum and tutorials etc
yu shud be able to script a when player enters room interaction that
simply returns the player to the previuos room after a few seconds using a character memory buffer and a timer but im a real newbie to all this so thats beyond me (sounds like it shud be pretty simple once yu know how tho)


im still working with the little i do know..

do a search in the help section of AGS for
memory buffer and timer and see if you can suss it out..

Ben

Very simple. Just put this in the hotspot's text script:

NewRoom(character[EGO].prevroom);

SMF spam blocked by CleanTalk