Skip to reading
Images, Carousels & Choice Controls

7. Animate an Image with frame assets

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

An Image can play a sequence of imported image assets. This is useful for a blinking lamp, a small animated ornament or a changing icon. It is separate from carousel browsing.

1. Add another Image with ID animated_image.

2. In Type Settings, enter key_icon, wheel_icon, oil_icon in Animation Frame Asset IDs.

3. Set Image Animation FPS to 2. Start Preview and watch the sequence.

4. Replace those test icons with the actual frame assets for your animation when the timing feels right.

Figure 10. Animation Frame Asset IDs lists assets in order. FPS controls the playback rate.

The entries are image asset IDs, not cell numbers such as 0, 1 and 2. In this workflow, each entry resolves to a texture. A spritesheet file should not be assumed to turn into separately cropped animation cells here.

The normal image is the fallback when no listed frames can be used. Valid listed frames take precedence over that fallback. Keep the frames the same size and alignment so the animation stays steady.

At 2 FPS, a three-frame sequence takes about 1.5 seconds to loop. A carousel’s Next control changes a selected picture; it does not use this FPS field to run a slideshow.

Page 13 of 52Permalink
Go to page