LoginLogin
Might make SBS readonly: thread

"Vanilla" SPSET

Root / Submissions / [.]

chickenCreated:
The default SPDEF doesn't just go through all the 16x16 chunks on the spritesheet. It contains some rotated and versions of previous sprites, as well as sprites larger than 16x16. But if you want to just select by the 16x16 block it is, here you go.
SPSET I,X MOD 32*16,FLOOR(X/32)*16,16,16

This is cool and useful, but I wish it were worded a bit better so beginners and the like would easily see why this is useful.

Replying to:Sam
This is cool and useful, but I wish it were worded a bit better so beginners and the like would easily see why this is useful.
I don't know how I could word it to be easily understandable. :(

SPSET I,X MOD 32*16,X DIV 32*16
SPSET I,X MOD 32*16,X>>5<<4

Replying to:12Me21
SPSET I,X MOD 32*16,X DIV 32*16
SPSET I,X MOD 32*16,X>>5<<4
o no i got golfed

Replying to:12Me21
SPSET I,X MOD 32*16,X DIV 32*16
SPSET I,X MOD 32*16,X>>5<<4
u just got golfed

Wow, I finally joined the ranks of the last-pagers.