Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rd27 on Wed 04/08/2004 20:49:48

Title: Walking out of room
Post by: Rd27 on Wed 04/08/2004 20:49:48
Is there a way to make it so, that if a player want's to go to other room, he does not have to interact or anything else, just to click hotspot with walking selected?

Another question:
Is there any limit with sprites and views?

Thanks ;D
Title: Re: Walking out of room
Post by: Ashen on Wed 04/08/2004 21:17:21
Not with hotspots, no.

However, you can use Regions - just put your room change command in the 'Player Walks onto region' interaction - or you could use the screen edges (the yellow lines on the Room editor page). Personally, I prefer Regions, as you get more control.


As to limits, they're in the manual:

15000  imported sprites
240  sprites per folder
400  views
16  loops per view
20  frames in each loop
(There are more on the 'System Limits' page, in the Refernece section.)
Title: Re: Walking out of room
Post by: Radiant on Thu 05/08/2004 14:31:05
Try this: In the on_mouse_click () function, put something like
if (GetHotspotAt (mouse.x, mouse.y) == 3 && GetCursorMode() == MODE_WALK) NewRoom (17);

Hit F2 to find out if you're anywhere near the limits. You're probably not even close :)
Title: Re: Walking out of room
Post by: Rd27 on Thu 05/08/2004 15:52:56
Thanks, I try these when I get back home  ;D