-
Notifications
You must be signed in to change notification settings - Fork 0
ViewFrame
Flipped property
Frame property
Graphic property
LinkedAudio property
Loop property
Speed property
View property
(Formerly part of GetGameParameter, which is now obsolete)
readonly bool ViewFrame.Flipped
Gets 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
(Formerly part of GetGameParameter, which is now obsolete)
readonly int ViewFrame.Frame
Returns 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
(Formerly part of GetGameParameter, which is now obsolete)
int ViewFrame.Graphic
Gets/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
(Formerly known as ViewFrame.Sound, which is now obsolete)
(Formerly known as SetFrameSound, which is now obsolete)
(Formerly part of GetGameParameter, which is now obsolete)
AudioClip* ViewFrame.LinkedAudio
Gets/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
(Formerly part of GetGameParameter, which is now obsolete)
readonly int ViewFrame.Loop
Returns 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
(Formerly part of GetGameParameter, which is now obsolete)
readonly int ViewFrame.Speed
Gets 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
(Formerly part of GetGameParameter, which is now obsolete)
readonly int ViewFrame.View
Returns 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
Getting Started in AGS
Editor Reference
- Music and sound
- Distributing your game
- Backing up your game
- The text parser
- Translations
- Global variables
- Custom Properties
- Plugins
- Lip sync
- New Game templates
- Debugging features
- Auto-number speech files
- Integration with Windows
- Source Control integration
Engine
Scripting
- Scripting tutorial part 1
- Scripting tutorial part 2
- Pointers in AGS
- Calling global functions from local scripts
- The script header
- String formatting
- Multiple Scripts
- Understanding blocking scripts
- Dynamic Arrays
- Extender functions
- Game variables
- Predefined global script functions
- repeatedly_execute (_always)
- Custom dialog options rendering
- Built-in enumerated types
- Script language keywords
- AudioChannel functions and properties
- AudioClip functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game / Global functions
- GUI functions and properties
- GUI control functions and properties
- GUI Button functions and properties
- GUI InvWindow functions and properties
- GUI Label functions and properties
- GUI List Box functions and properties
- GUI Slider properties
- GUI Text Box functions and properties
- Hotspot functions and properties
- Inventory item functions and properties
- Maths functions and properties
- Mouse functions and properties
- Multimedia functions
- Object functions and properties
- Overlay functions and properties
- Palette functions
- Parser functions
- Region functions and properties
- Room functions
- Screen functions
- Speech functions and properties
- String functions
- System functions and properties
- Text display / Speech functions
- ViewFrame functions and properties
Working on Legacy games
Upgrading from a previous version
- Upgrading to AGS 2.7
- Upgrading to AGS 2.71
- Upgrading to AGS 3.0
- Upgrading to AGS 3.1
- Upgrading to AGS 3.2
- Upgrading to AGS 3.3
- Upgrading to AGS 3.3.5
- Upgrading to AGS 3.4
- Upgrading to AGS 3.4.1
Legal Notice
Getting in touch