Flipped property
Frame property (view frame)
Graphic property (view frame)
Loop property (view frame)
Sound property (view frame)
Speed property (view frame)
View property (view frame)
readonly bool ViewFrame.FlippedGets whether the frame was set to Flipped in the editor.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
if (frame.Flipped) {
Display("This frame is flipped");
}
else {
Display("This frame is not flipped");
}
See Also: Game.GetViewFrame,
ViewFrame.Graphic
readonly int ViewFrame.FrameReturns the frame number represented by this ViewFrame.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This ViewFrame is view %d, loop %d, frame %d",
frame.View, frame.Loop, frame.Frame);
See Also: Game.GetViewFrame,
ViewFrame.Loop,
ViewFrame.View
int ViewFrame.GraphicGets/sets the sprite slot number that this view frame displays.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This frame uses sprite %d", frame.Graphic);
See Also: Game.GetViewFrame
readonly int ViewFrame.LoopReturns the loop number represented by this ViewFrame.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This ViewFrame is view %d, loop %d, frame %d",
frame.View, frame.Loop, frame.Frame);
See Also: Game.GetViewFrame,
ViewFrame.Frame,
ViewFrame.View
int ViewFrame.SoundGets/sets the sound number of the sound that is linked to this frame. If there is no linked sound, this should be 0.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This frame has frame-linked sound %d.", frame.Sound);
See Also: Game.GetViewFrame
readonly int ViewFrame.SpeedGets the speed setting of the view frame. This is 0 by default but may have been changed in the AGS Editor.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This frame has speed %d.", frame.Speed);
See Also: Game.GetViewFrame
readonly int ViewFrame.ViewReturns the view number represented by this ViewFrame.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4);
Display("This ViewFrame is view %d, loop %d, frame %d",
frame.View, frame.Loop, frame.Frame);
See Also: Game.GetViewFrame,
ViewFrame.Loop,
ViewFrame.Frame