Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

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

drawImage(), drawImageEx(), drawSheet(), tileSize()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.