Plugin API: character-resolution?

Started by Calin Leafshade, Wed 25/08/2010 07:52:31

Previous topic - Next topic

Calin Leafshade

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?

Monsieur OUXX

 

monkey0506

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. ;)

Pumaman

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.

SMF spam blocked by CleanTalk