Time for action – modifying an animation's frame durations
The game file to import and load for this session is 5961_05_03.stencyl
.
Ensure that we can see the new frames for the
Blinking Statue
animation by clicking on the Dashboard tab, then selecting Actor Types and double-clicking on the Stencyl Book Statue icon.In the Animations panel, note that we can see the miniature animation for the
Blinking Statue
looping through each frame very quickly.In the main panel, double-click on the statue with frame number 0 (zero) to open the Edit Frame dialog box.
Change Duration (in milliseconds) from
100
to1000
.Click on the OK button.
In the Animations panel, note that we can immediately see the change in the statue's frame duration for the frame that we changed.
Change the duration of frame number 4 to
1000
.Test the game!
What just happened?
We have changed the display duration for two specific frames within the animation.
Firstly, we modified frame 0 to have a duration of 1000
milliseconds, which is equal...