Difference between revisions of "Callback: Add sprite offset callback"

From GRFSpecs
Jump to navigationJump to search
m (Create a separate page for each callback)
 
(more strict var 10/18 masking)
 
Line 9: Line 9:
 
|}
 
|}
   
The default number is accessible in variable 10 (extra callback info 1) to decide if the sprite number needs an offset.
+
The default number is accessible in the lowest byte of variable 10 (extra callback info 1) to decide if the sprite number needs an offset.
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]

Latest revision as of 12:33, 18 April 2015

Add sprite offset callback (147)

Add an offset to the default sprite number to be drawn.

Feature Accessible Variables
Canals 80+x variables are accessible by Canals. See VarAction2Canals

The default number is accessible in the lowest byte of variable 10 (extra callback info 1) to decide if the sprite number needs an offset.