Sprite.NextFrame Event
Animation Studio Reference

Sprite.NextFrame Event

This event fires, when the next frame of the sprite is rendered into the SpritePanel.

[Visual Basic]
Public Event NextFrame As SpriteFrameHandler
[C#]
public event SpriteFrameHandler NextFrame;

Event Data

The event handler receives an argument of type SpriteFrameEventArgs containing data related to this event. The following SpriteFrameEventArgs properties provide information specific to this event.

PropertyDescription
Frame Gets the current Frame when the event occured.
FrameNumber Gets the Frame Number when the event occured.
LastFrame Indicates if it was the last Frame when the event occured.

Remarks

You can add this event to the sprite, by double clicking the event in the Event Pane of the property tab in the designer.

See Also

Sprite Class | AnimationStudio Namespace