[Resolved] Code for using separate animations as frames?

Beckb

  • Posts: 55
I'd like to use separate animations as unique frames so that I can set up a collision box for each frame. Would anybody know of a code to loop these over and over?

« Last Edit: September 14, 2018, 02:13:51 pm by Beckb »

Bombini

  • *
  • Posts: 1055
Hi,
you can get the current frame of an animation.
So for example "if current frame for Animation 0 = x" "switch to Animation 1".
Cheers!

Beckb

  • Posts: 55
Hi,
you can get the current frame of an animation.
So for example "if current frame for Animation 0 = x" "switch to Animation 1".
Cheers!

Thanks! Where do I place the block, though? For example, should it be within a "when updating" command?

Bombini

  • *
  • Posts: 1055
For example yes.
It works also in a every x seconds event and so on.
Example attached.
Instead of palying audio you would switch to another animation.

Beckb

  • Posts: 55
For example yes.
It works also in a every x seconds event and so on.
Example attached.
Instead of palying audio you would switch to another animation.


Awesome, thank you!