Initially trees are spawned in the middle of their tile like all objects, then their event parameters determine how to adjust their position. The first parameter is unsigned 5 bits and is added to the Y coordinate in pixels, except that if it's 0, it's treated as 24. The second parameter is signed 6 bits and its value plus 16 is added to the X coordinate in pixels.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
|