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..

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.003 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google