GetSpriteQuantity
MaxSprites = GetSpriteQuantity()
 
Parameters: NONE
Returns:

    MaxSprites = The max number of Sprites that PB can currently handle
 

      The GetSpriteQuantity() function return the maximum number Sprite Indexs available.



FACTS:


      * See SpriteQuantity if you wish to reduce or allocate more space for more sprite indexs




Mini Tutorial:


      This example simply gets the current sprite quantity, displays it then doubles the quantity and displays it again.

  
; Read the Default Sprite range
  AvailableSprites=GetSpriteQuantity()
  
; display this value to the screen
  Print AvailableSprites
  
; double the available quantity
  SpriteQuantity AvailableSprites*2
  
; display the new new Sprite quantity
  Print GetSpriteQuantity()
  
; display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output (This depends upon what version of PB your running, so the results may differ).

  
  1500
  3000
  

 
Related Info: CreateSprite | GetFreeSprite | SpriteQuantity :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com