CurrentAnimFrame

Syntax:

Result = CurrentAnimFrame( AnimSprite )

Parameters:

AnimSprite

=

your AnimSprite


Return Values:

Result

=

the currently used frame number


Description:

Returns the current selected Frame in the AnimSprite.


Example:

  LoadSprite(1,"player.bmp",0)
  TransparentSpriteColor(1,255,0,255)
  CreateAnimSprite(player.AnimSprite,1,75,75)

  ; in game loop
  DisplayAnimSprite(player,100,100)
  NextAnimFrame(player)

  If CurrentAnimFrame(player) = 10
     ; do something
  Endif


Supported OS:   Windows, Linux