Sticky bit: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
Setting it to 1 makes the corresponding sprite "stick" to the right of the precedent one.
Setting it to 1 makes the corresponding sprite "stick" to the right of the precedent one.


The [[GPU]] will automatically place it 16 pixels to the right of the precedent sprite, use the same Y position, size in tiles and vertical shrinking coefficient.
The [[GPU]] will automatically place it to the right of the precedent sprite, use the same Y position, the same size in tiles and the same vertical shrinking coefficient.
Only the horizontal shrinking coefficient is left independant.
Only the horizontal shrinking coefficient is left independant.



Revision as of 03:49, 27 December 2015

The "sticky bit" (or "chain bit") is one of the per-sprite attributes stored in the Sprite Control Bank 3 (bit 6).

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Def Y position Sticky bitSprite size

Setting it to 1 makes the corresponding sprite "stick" to the right of the precedent one.

The GPU will automatically place it to the right of the precedent sprite, use the same Y position, the same size in tiles and the same vertical shrinking coefficient. Only the horizontal shrinking coefficient is left independant.

Chained sprites can also be called "driven sprites".

Changing the driving sprite's attributes will change all those of the consecutively chained sprites.