I'd like to show multiple slices of a sprite. Stacking clips like this doesn't work, because the last one overrules the others:
Is there another way to achieve this effect?
The expensive way would be to set your clip slice, render the sprite, then set the next slice and render again, until you've got all your slices.
A better way would be to use sspr(), the scaling version of spr(), without any scaling. That way you get to specify the source rectangle in terms of pixels, rather than sprites. Then you can simply render the slices directly.
[Please log in to post a comment]