-
Notifications
You must be signed in to change notification settings - Fork 9
TemplateSierraStyle
This template was previously listed as the 'default' template, with the majority of functions used being native to the engine itself. i.e. there is no separate script file to implement any additional behavior for the mouse cursor. This makes it a good choice for learning how AGS works, since it makes heavy use of the mouse cursor functions.
As a general guide, right clicking changes your cursor mode, left clicking uses the current cursor mode.
This template also contains the majority of examples for save game and option handling, and also demonstrates the default handling for an inventory window.
One script module is included, which allows the main character to be controlled with the keyboard. This is switched on and configured with some default settings, but can be reconfigured or switched off entirely by using the defined functions.
Example:
// configure the player for arcade action
KeyboardMovement.Mode = eKeyboardMovementModePressing;
KeyboardMovement.KeyUp = eKeyW;
KeyboardMovement.KeyDown = eKeyS;
KeyboardMovement.KeyLeft = eKeyA;
KeyboardMovement.KeyRight = eKeyD;
KeyboardMovementMode KeyboardMovement.Mode
Sets the keyboard movement mode. Possible values are:
eKeyboardMovementModeNone
(disable keyboard control)
eKeyboardMovementModeTapping
(tap a direction to move)
eKeyboardMovementModePressing
(hold down a direction to move)
eKeyCode KeyboardMovement.KeyUp
Assigns the key used to move the player upwards.
eKeyCode KeyboardMovement.KeyDown
Assigns the key used to move the player downwards.
eKeyCode KeyboardMovement.KeyLeft
Assigns the key used to move the player to the left.
eKeyCode KeyboardMovement.KeyRight
Assigns the key used to move the player to the right.
See also: Templates, Setting up the game
Getting Started in AGS
Editor
- New Game templates
- Editor Preferences
- General Settings
- Default Setup
- Colours Editor
- Room Editor
- Character Editor
- Cursor Editor
- Dialog Editor
- Font Preview
- GUI Editor
- Inventory Items Editor
- View Editor
- Sprite Manager
- Music and sound
- Voice speech
- Script Modules
- System limits
- Log Panel
- Plugins
- Other Features
Engine
Scripting
- Scripting Tutorial
- Scripting Language
-
Scripting API
- Script API Overview
- Standard Constants
- Standard Enumerated Types
- Standard Types
- Game variables
- Global arrays
- Global event handlers
- repeatedly_execute / repeatedly_execute_always
- Custom dialog options rendering
- Global functions: general
- Global functions: message display
- Global functions: multimedia actions
- Global functions: palette operations
- Global functions: room actions
- Global functions: screen effects
- Global functions: wait
- AudioChannel functions and properties
- AudioClip functions and properties
- Camera functions and properties
- Character functions and properties
- DateTime functions and properties
- Dialog functions and properties
- DialogOptionsRenderingInfo functions and properties
- Dictionary functions and properties
- DrawingSurface functions and properties
- DynamicSprite functions and properties
- File functions and properties
- Game functions and properties
- 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
- Object functions and properties
- Overlay functions and properties
- Parser functions
- Region functions and properties
- Room functions and properties
- Screen functions and properties
- Set functions and properties
- Speech functions and properties
- String functions
- System functions and properties
- TextWindowGUI functions and properties
- ViewFrame functions and properties
- Viewport functions and properties
- Obsolete Script API
- Event Types
- Key code table
- Audio in script
Legal Notice
Getting in touch
Misc