Sprites avec MotionPath et Timer

 

The purpose is to make an animation using only a script.
Squares 'd appear at point A then move towards point B, but with a 1s delay in A.
We 'll use a timer and beginGradientFill for sprites.

⇒ animation ⇐

Creating Objects

Set up movie size 640x480 (background color #CCFFFF).
Choose a Frame Rate equal to35.

Script

In Outline, select Scene_1. Enter the following script :

This example is pretty simple; it 'd be necessary to control time during loop to avoid slowing down animation..

 


Page chargée en 0.001 sec.

Dernière Modification : Sam 14 Octobre 2023 9:48
Copyright © 1999-2024 Jean-Paul Molina Tous droits réservés.

 

to Google