Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anarcho on Fri 15/04/2005 02:01:00

Title: region problem--won't change room
Post by: Anarcho on Fri 15/04/2005 02:01:00
I've got this strange problem.  I've got two regions in a room, that send the player to the next room when walked on.  It's always worked in the past---the commands are just set in the interaction editor for region. 

Then I just split the room's walkable area in two in order to add some continous scaling.  Once I did that though, the regions no longer work.  Now when the player walks onto either region, she jumps back to where she started and doesn't go to the next room.

Any ideas?
Title: Re: region problem--won't change room
Post by: Gilbert on Fri 15/04/2005 02:32:48
Odd.
Are you sure the parameters of the interactions were set correctly so she will jump to the correct room, not the current room?
Title: Re: region problem--won't change room
Post by: Anarcho on Fri 15/04/2005 02:45:01
Positive---I just checked.  This is for room 12, one region sends her to room 7, and the other room nine.  I've even checked the coordinates to makes sure it's correct.

I'm using 2.7 beta.
Title: Re: region problem--won't change room
Post by: Gilbert on Fri 15/04/2005 03:42:57
Hmmm can you zip up the room in question so we have have some checking?
(You may even change the bg to a black one with the same size if you don't want us to see it)
Title: Re: region problem--won't change room
Post by: Anarcho on Fri 15/04/2005 03:59:35
Sure, but how do I do that?  I mean, how do I zip up just the one room?
Title: Re: region problem--won't change room
Post by: Gilbert on Fri 15/04/2005 04:01:39
zip that crm file
Title: Re: region problem--won't change room
Post by: Anarcho on Fri 15/04/2005 04:23:11
http://www.geocities.com/princebusterlw/Room12_EE.ZIP

I actually changed the walkable area into one big area, but it doesn't matter.  The character still won't transfer to the next room.
Title: Re: region problem--won't change room
Post by: Gilbert on Fri 15/04/2005 04:55:15
The teleportings worked for me without problem, is it possible that there're something in room 7 or room 8 (like in the "player enters room interaction" say for example) that sends her back ro room 12?
Title: Re: region problem--won't change room
Post by: on Fri 15/04/2005 05:21:58
No, not that I can find.  It's not like the room fades out and then re-enters in the same room, she steps onto the region, then reappears on the other side of the region.  It's really wierd.  I wonder why it works for you and not with me.
Title: Re: region problem--won't change room
Post by: TerranRich on Fri 15/04/2005 06:39:06
Do you have any weird global/room scripts running in the background? Anything else that could be causing this that would not even be IN the room, like character settings or something?
Title: Re: region problem--won't change room
Post by: Gilbert on Fri 15/04/2005 07:33:49
Also, what version of AGS are you using?
Title: Re: region problem--won't change room
Post by: Anarcho on Fri 15/04/2005 16:03:32
2.7 Beta.  I downloaded it last week.

I'm going to have to check the global/room scripts when I get home from work.  I can't think of any character settings that would effect this.  She walks fine in other rooms, transports fine.

I'll write back later.  Thanks for the help though.
Title: Re: region problem--won't change room
Post by: Anarcho on Sat 16/04/2005 01:56:41
Well I'm stumped.  I've looked through the global script and the room script and can't find anything that relates to regions in that room.  The only thing I have in the room script is a Setglobalint that effects another room. 

The only I haven't tried yet is removing the regions and trying to put them back in...maybe as hotspots.

UPDATE: Ok, even wierder.  First I got rid of the regions in the effected room and then put them back in...the same thing happens where she jumps back a space and doesn't transport.  Then I got rid of the regions, and instead put in hotspots on the floor.  In the walk over area section of the hotspot editor, I added the same command of transport player to another room.  Now when I test the game, and enter the room, the games gets super slow and you can no longer switch gui icons.  And the character won't move. 

What's going on?!?
Title: Re: region problem--won't change room
Post by: Gilbert on Mon 18/04/2005 03:23:52
hmmm real odd, can you upload this room again?
Title: Re: region problem--won't change room
Post by: Anarcho on Tue 19/04/2005 01:15:19
Odd indeed!  A few days ago I removed the regions entirely, and as I said, tested it with hotspots.  Then I removed the hotspots and just left it without anything for a while.  I went back to it tonight and put the regions back in with the change room commands, in order to restore the room to the original settings that were giving me trouble. 

And now it works fine!  I don't know what happened.  I really don't consider this problem solved, because I still don't know what the problem was.  Either way, it works so that's good.

Thanks for the help, and I'll write back if a similar problem arises again.