Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - multi007

#1
Ok -  so now when I leave room 1, I end up on room 2 but on the far right side of room 2. (i want to be on the left side of room 2 when I leave room 2).  Like this...




I used auto position as suggested in a prior thread.

But also, now when I leave room 2 (from the far right side, walking to the left side) the room goes to black.

Here are my rooms and scripts.






Here's a video of what's happening here. 



So what I want is for player to go to room 2, then back to room 1.  (Its easy im sure, but im so new i cant figure it out.)

Funny thing - I had it looping originally - player went from room 1, to hotspot, then the room changed back to room 1. But i fixed that.




#2
Thanks eri and Kris

"Whatever it says next to "Stands on hotspot" (which is the legacy event  I assume you have used) is supposed to match the name of a room script function exactly, to the letter."

I did NOT know this...  Let me play around with it and I'll post an update.   
#3
 (never again will this happen - i'll back up the files regularly from now on).

tried recreating the script - now when I run the game, I get this error window.

"Internal error occurred"  ACI version 3.5.1.19

Error: Prepare_script: error - 18 (no such function in script)
trying to run "exit to lake" (Room 1)

Here's my room 1 script

 // room script file
function hExit_WalkOn()
{
  player.ChangeRoomAutoPosition(2);
}


Here's my hotpot window details

Description Exit To Lake
Name   hExitToLake

 
Here's my room 2 script

 // room script file
function hExit_WalkOn()
{
  player.ChangeRoomAutoPosition(2);
 
}

Here's my hotpot window details

Description Exit to Cabin
Name hExitToLake


Any help is appreciated.
#4
thank you all - i'll check out your suggestions once family leaves after the weekend. 

Snarky - sorry about that and will do in the future.
#5
I just screwed up my entire room script for Hotspots only... luckily I only have 2 rooms but somehow both scripts in both rooms got so messed up so i just deleted the entire hotspot scripts.

So now I have the hotspot drop downs (in the room details field where the hotspot, walkable areas, and erasers are) that still have the titles i assigned.  I tried to do it over again but its almost like I need to clear the entire hotspot file on my pc to start my hotspots new again.

Is there a way to clear the entire hotspot folder so I can start new hotspots all over again?

Thanks
#6
Quote from: Snarky on Tue 22/11/2022 18:51:24Guys, you're forgetting that AGS has this feature built in.

Quote from: multi007 on Tue 22/11/2022 18:23:05Because what I want to happen is just like it does in the KQ games, if the player exits a room on the top of the page, the player appears at the top of the room 2.  If he exits the bottom, he appears on the bottom.

That is exactly what Character.ChangeRoomAutoPosition(int RoomNumber) does. If the character exits along one edge, it'll appear at the corresponding position along the edge of the opposite side of the new room, just as in your drawing.

Perfect!  Thank you.  I was banging my head trying to do this for an hour. 
#7
If I put the player's landing coordinates on the 2nd room, lets say 240 x 350, does that mean wherever he exits from room 1, he will always land on that same spot in room 2?

Because what I want to happen is just like it does in the KQ games, if the player exits a room on the top of the page, the player appears at the top of the room 2.   If he exits the bottom, he appears on the bottom. 

Here's a hand drawn sketch of what I want.    A to A,  or B to B,  or C to C...

I dont want the player to land at the same spot regardless of where he exits...

https://i.imgur.com/v1mns3ol.jpg
SMF spam blocked by CleanTalk