Flipped property
Frame property (view frame)
Graphic property (view frame)
LinkedAudio property (view
frame)
Loop 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
AudioClip* ViewFrame.LinkedAudioGets/sets the audio clip that plays when this frame comes around in animations.
If there is no linked sound, this should be null.
Example:
ViewFrame *frame = Game.GetViewFrame(WALKING, 2, 4); if (frame.LinkedAudio == null) { Display("This frame has no frame-linked audio."); } else { frame.LinkedAudio.Play(); }checks view WALKING to see if frame 4 in loop 2 has a linked audio clip; if so, plays it.
Compatibility: Supported by AGS 3.2.0 and later versions.
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
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
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |