I'd like to show multiple slices of a sprite. Stacking clips like this doesn't work, because the last one overrules the others:
clip(0,80,128,1)
clip(0,82,128,1)
clip(0,84,128,1)
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.
Thanks! My solution was to draw multiple clipped sprites, but sspr seems a much cleaner solution.
[Please log in to post a comment]