Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: shaun9991 on Mon 28/06/2021 17:47:31

Title: Region limit per Room
Post by: shaun9991 on Mon 28/06/2021 17:47:31
Hi guys,

Please forgive me if this is a really obvious question. I'm toying around with the idea of one day creating a "JRPG" visual style adventure game with keyboard/gamepad controls using AGS, I've got all the structure set up nicely in a room that I'm testing. I am basing hotspot/object/character interaction on IsKeyPressed while Player is standing on a Region in front of whatever the hotspot/object/character is.

I've noticed that there seems to be a limit of 15 Regions per room - is there any way around this? I would hate to limit interactable things to 15 per room. I know there would be other ways around this i.e. calling rep-exec based on the Player position in relation to the interactable area, but just wondering if there is any way of expanding the Region limit.

Many thanks,
Shaun
Title: Re: Region limit per Room
Post by: Khris on Mon 28/06/2021 21:08:31
You can just draw the hotspots on the floor instead, since drawing them at their usual place is pointless anyway.

Here's an old post of mine regarding this topic: https://www.adventuregamestudio.co.uk/forums/index.php?topic=44602.msg595691#msg595691
Title: Re: Region limit per Room
Post by: Crimson Wizard on Mon 28/06/2021 21:49:15
There might be multiple workarounds, e.g. you probably also may use a number of dummy transparent characters* to test "AreThingsOverlapping" and move them to new places as player moves around the map.

* you may also use objects, characters are unlimited and may be used regardless of the room though.
Title: Re: Region limit per Room
Post by: shaun9991 on Tue 29/06/2021 16:06:18
Thanks guys - fantastic tips! Problem solved :)