edit-animations-properties.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. .. include:: ../_header.rst
  2. Editing the properties of the animations
  3. ----------------------------------------
  4. These are the properties of an animation:
  5. **Key**: The identifier of the animations. Used to play the animation in a sprite: ``sprite.play("walk")``.
  6. **Frame Rate**: The frame rate of playback in frames per second (default 24).
  7. **Delay**: Delay before starting playback. Value given in milliseconds.
  8. **Repeat**: Number of times to repeat the animation (-1 for infinity).
  9. **Repeat Delay**: Delay before the animation repeats. Value given in milliseconds.
  10. **Yoyo**: Should the animation yoyo? (reverse back down to the start) before repeating?
  11. **Show On Start**: Should sprite.visible = true when the animation starts to play?
  12. **Hide On Complete**: Should ``sprite.visible = false`` when the animation finishes.
  13. **Skip Missed Frames**: Skip frames if the time lags, or always advanced anyway?
  14. By default, the editor shows all the animations and in the |InspectorView|_ shows the properties of all of them. However, you can click on an animation in the editor, to edit the properties of that single animation. Or select a couple of animations in the |OutlineView|_.
  15. .. image:: ../images/animations-edit.webp
  16. :alt: Edit the animations.