sprite_exists(ind) Returns whether a sprite with the given index exists.In certain situations you might want to save the bitmap corresponding to a particular subimage of the sprite to a file. For this the following function can be used:
sprite_get_name(ind) Returns the name of the sprite with the given index.
sprite_get_number(ind) Returns the number of subimages of the sprite with the given index.
sprite_get_width(ind) Returns the width of the sprite with the given index.
sprite_get_height(ind) Returns the height of the sprite with the given index.
sprite_get_transparent(ind) Returns whether the sprite with the given index is transparent.
sprite_get_smooth(ind) Returns whether the sprite with the given index has smoothed edges.
sprite_get_preload(ind) Returns whether the sprite with the given index must be preloaded.
sprite_get_xoffset(ind) Returns the x-offset of the sprite with the given index.
sprite_get_yoffset(ind) Returns the y-offset of the sprite with the given index.
sprite_get_bbox_left(ind) Returns the left side of the bounding box of the sprite with the given index.
sprite_get_bbox_right(ind) Returns the right side of the bounding box of the sprite with the given index.
sprite_get_bbox_top(ind) Returns the top side of the bounding box of the sprite with the given index.
sprite_get_bbox_bottom(ind) Returns the bottom side of the bounding box of the sprite with the given index.
sprite_get_bbox_mode(ind) Returns the bounding box mode (0=automatic, 1=full image, 2=manual) of the sprite with the given index.
sprite_get_precise(ind) Returns whether the sprite with the given index uses precise collision checking.
sprite_save(ind,subimg,fname) Saves subimage subimg of sprite ind to the file with the name fname. This must be a .bmp file.
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |