AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.Ticks

Property  -  Static Read Only

Type

ulong

Description

Represents the count of calls to IRetroBlitGame.Update since startup, or since RB.TicksReset was called.

Example

int DrawAnimatedSprite(Vector2i pos, int firstFrame, int totalFrames)
{
    RB.DrawSprite(firstFrame + (int)(RB.Ticks % totalFrames), pos);
}

See Also

IRetroBlitGame.Update
RB.TicksReset