Menu

Animate

UltraBas

Animate entity, mode,speed!,sequence,transition!

Animate an entity, if the entity has animation sequences.

mode is the mode of animation.

  • 0: stop animation
  • 1: loop animation (default)
  • 2: ping-pong animation
  • 3: one-shot animation

speed: an higher value means a faster animation. A negative value means a backward animation. Default is 1

sequence: set which animation sequence will be played. The same entity can have many sequences (walk, idle, jump, swim, climb...). Default is 0.

transition: used to tween between an entities current position rotation and the first frame of animation. Default is 0.


Related

Wiki: Alphabetical-commands
Wiki: Category-commands

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.