Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Wed 25/08/2010 07:52:31

Title: Plugin API: character-resolution?
Post by: Calin Leafshade on Wed 25/08/2010 07:52:31
the ags API doc states:

Quoteint GetWalkbehindBaseline (int area);

    Returns the baseline for walk-behind area number area. This is always in character-resolution, ie. the maximum value is 200 in all resolutions.

What is character resolution? and how can the maximum only be 200? what about scrolling rooms and stuff?
Title: Re: Plugin API: character-resolution?
Post by: Monsieur OUXX on Thu 26/08/2010 14:08:28
up (curious about the answer)
Title: Re: Plugin API: character-resolution?
Post by: monkey0506 on Fri 27/08/2010 03:27:17
I could be completely wrong here, but I think that 200 being the maximum value only applies to non-scrolling rooms in 320x200 games. In 320x240 games then it would still use low-res coordinates while 240 being the "maximum".

In cases of major confusion and/or curiosity it's always best to just run some silly tests. That's actually how I've discovered some of the best unsupported/undocumented features and functionality in AGS (attributes, virtual data types such as StackData, polymorphism, etc.). Just run some tests and post your results for everyone to see. All of them. ;)
Title: Re: Plugin API: character-resolution?
Post by: Pumaman on Sat 28/08/2010 12:54:53
Yes, in scrolling rooms it can be higher, and as monkey says in a 320x240 game the max would be 240.

What the docs are trying to say is that if the game is 640x480, the walk-behind baseline is still in low-res co-ordinates thus its max would be 240, not 480.