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.


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


Member of the Anti Hacker Alliance

Select a language if you need :

Page chargée en 0.017 sec.

Dernière Modification : Dim 14 Juin 2020 9:29
Copyright © 1999-2020 Jean-Paul Molina Tous droits réservés.

to Google