example.md 765 B


tags: sprite title: Flip brief: This example demonstrates flipping a sprite animation vertically and horizontally. author: FlexYourBrain scripts: flip.script

thumbnail: flip_thumb.png

Overview : sprite.set_hflip & sprite.set_vflip uses a boolean to set if a sprite animation should be flipped.

flip

The setup consists of 2 bee game object's, another game object for text labels and a single script.

2 Game Object's : containing:

  • A sprite with default animation set to bee

1 Game object : contains:

  • A script
  • 2 text labels

Script : use:

  • Sets sprite flip and go.animation for bee game objects.