-
Notifications
You must be signed in to change notification settings - Fork 9
EditorView
In the view editor you add sprites from the Sprite Manager to animation strips called Loops. This way you create the walkcycles for your Character as well as all other character animations. Also you define the animation for every object on screen you want to animate with Loops inside a View.
You can have 4 or 8 Loops for different directions for walking views. This means your character can either walk left, right, up and down with 4 Loops or you add 4 additional directional walkcycles for diagonal movement. Usually 4 directions are more than enough to animate but no one is stopping you from going all the way. You set the 4/8 directions walking animation per character in the Character Editor. Animation flipping is also possible but for that see the Right Click Context Menu entry.
It is good practice to use a new loop for every character and also for special character animations.
You can add a lot of object animations to one single view, but you could for example sort them by game chapters (one view for every chapter) to make it easier for you to find them again. You can name the View with a right-click on the View in the game explorer.
Don't worry about overloading AGS, with the newer versions you can have unlimited views, unlimited loops per view and unlimited frames per loop. Still, be reasonable, for example a 200 frames loop with 320x200 pixel sized frames makes the AGS editor slow while displaying (preloading) the big amount of pixel information, so when you have a lot of "fullscreen" frames you should consider using a new view for each one of them for your own sanity.
When you right-click on a single frame in a loop you get the following options:
-
Flip frame
Flips a single frame.
-
Delete frame
Remove that single frame
-
Insert frame before this
Useful when you added your animation and forgot that the first frame is the idle frame.
-
Insert frame after this
Inserts a frame after the one you right clicked.
-
Cut loop
Good for moving things around when you did everything right but in the wrong loop.
-
Copy loop
Copies an entire loop!
-
Paste over this loop
You need this to place the loop after you cut or copied it.
-
Paste over this loop flipped
If you have copied the loop with the character going right, this will make him go to left!
-
Flip all frames in loop
You already did the character going right and copied this loop and want to flip the sprites in the whole loop, then use this option! This is a good timesafer.
-
Add all sprites from folder
Put all the sprites to be used in a loop, in a folder in the sprite manager, ordered (probably with a consecutive number sequence at the end), then you can use this option to quickly add all image files from that folder to the loop in the order they are in the folder. This is useful when you have many frames for a loop.
When you tick the checkbox above the Loops called Show Preview you get to see a preview of the animation of course. It is located to the left of the list of Loops and you can either manually browse through all the frames of the Loop or you check the animate checkbox to see it in motion.
The Skip Frame 0 (standing Frame) Checkbox does exactly that, it skips Frame 0 for the preview animation. This is only important for previews for views that are used as walking views for a character.
When you animate a game object or you want the character to animate different from walking (like picking up an Inventory Item) Frame 0 is always included in the animation. When the view is used as a walking view Frame 0 is skipped for the animation until the character reaches the endpoint of the walk and stops there. Then Frame 0 is displayed all the time in the direction the character is facing when he stopped walking.
Delay
With the delay setting you delay the displaytime of the one selected frame only by that amount. This delay is in game frames, so, how long the delay is in time depends on the frames per second your game is running on. You can check the game-speed for easy debugging with GetGameSpeed. In your start function you can even set the FPS with SetGameSpeed. By default AGS games run at 40 FPS. This delay value is specific to one frame only. And you can slow down the whole animation with the Delay value of the Animate function. This frame delay is added to the overall loop delay.
Flipped
You flip that one frame with that property. Very useful for mirrored animations like in walkcycles for left and right walk. Don't have a character with a cane then. Please note you can also flip the whole loop and not only a single frame within the Right Click Context Menu.
Image
The image number AGS gives your image imported into the Sprite Manager. This selected frame has exactly this image number.
ID
Greyed out. Should be the frame number within the loop for the selected frame.
Sound
Play the sound set here every time the animation loop plays and reaches this frame.
Useful for footsteps and all other sounds needed for object animations.
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