Sprites
Last updated
Last updated
integer
boolean
boolean
integer GetLastFrameOfAnimation(
sprite, string? animation)
Helper function to get the last frame of a certain animation.
boolean SpriteEquals(
sprite1,
sprite2, integer layer, integer xStart, integer xFinish, integer xIncrement, integer yStart, integer yFinish, integer yIncrement)
Helper function to check if two sprite layers have the same sprite sheet by using the Sprite.GetTexel
method. Since checking every single texel in the entire sprite is very expensive, this function requires you to specify the range of texels to check.
boolean TexelEquals(
sprite1,
sprite2,
position, integer layer)
Helper function to check if two texels on a sprite are equivalent to each other.
( sprite, string?
animation)
( sprite1, sprite2, integer
layer, integer
xStart, integer
xFinish, integer
xIncrement, integer
yStart, integer
yFinish, integer
yIncrement)
( sprite1, sprite2, position, integer
layer)