Difference between revisions of "Set.pri.base"
(→Syntax) |
|||
Line 7: | Line 7: | ||
== Parameters == | == Parameters == | ||
− | *A: the y value of the top of the desired priority 4 base band | + | *([[Number]]) '''A''': the y value of the top of the desired priority 4 base band |
== Remarks == | == Remarks == |
Revision as of 17:45, 22 March 2019
The set.pri.base command adjusts the size of the priority bands on the priority screen.
Syntax
set.pri.base(byt A);
Parameters
- (Number) A: the y value of the top of the desired priority 4 base band
Remarks
This command adjusts the size of the priority bands. The height of the base band (priority = 4) is set to A. All other bands from 5 to 14 are then spaced evenly over the remaining area of the screen (Priority 15 is never reachable on screen). The default height of the base band when AGI starts is 48 (pixel rows 0 - 47). This arrangement works well for most rooms to simulate a 3-D screen, but if you have a room with a more complex perspectives, the set.pri.base command can be helpful.
Possible Errors
Do not use a value greater than 158, otherwise some priority bands will be missing from the screen due to the way that AGI calculates the bands. If you use a value greater than 166, then the entire screen will be priority 4, regardless of objects' position.
Example
<syntaxhighlight lang="agi"> set.pri.base(60); // this widens the base band by 12 pixels </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in version 2.936 and above. |
Byte-Code Value: | 174 (0xAE hex) |