0
Answered

Starting animations automatically

awardstudios 2 years ago updated by Vitaly Ovchinnikov 2 years ago 1

Hi Vitaly, there are some possibility on koru starting animation without buttons (not visible from user) between two snapshots on looping?

Thanks

Stefano Di Lorenzi

Answer

Answer
Answered

Hello Stefano,

Do you need to run it on startup, or just loop between two animations once the first has started?

You can activate a snapshot using javascript, see here for an example: https://boxshot.com/koru/tutorials/tips/javascript-buttons/ - so all you need is to wait till the scene is loaded and activate the snapshot you need. Then you can link snapshots into a chain, so they play one after another.

Or if you need a simple "idle" animation, you can try this tutorial: https://boxshot.com/koru/tutorials/tips/auto-rotation/


Cheers!

Answer
Answered

Hello Stefano,

Do you need to run it on startup, or just loop between two animations once the first has started?

You can activate a snapshot using javascript, see here for an example: https://boxshot.com/koru/tutorials/tips/javascript-buttons/ - so all you need is to wait till the scene is loaded and activate the snapshot you need. Then you can link snapshots into a chain, so they play one after another.

Or if you need a simple "idle" animation, you can try this tutorial: https://boxshot.com/koru/tutorials/tips/auto-rotation/


Cheers!