numTiles()
Purpose
Find the number of tiles in a tilesheet
Description
Returns the number of tiles in a supplied sheet. Returns a 0 if supplied image is not a tilesheet
Syntax
number = numTiles( tilesheet )
Arguments
tilesheet handle of the tilesheet
count number of tiles in the tilesheet
Example
img = loadImage( "Ansimuz/LadyIdle" )
n = numTiles( img )
print( n )
update()
sleep( 3 )
Associated Commands