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
Member of the Anti Hacker Alliance

Select a language if you need :


Page chargée en 0.025 sec.

Dernière Modification : Dim 28 Avril 2019 12:45
Copyright © 1999-2019 Jean-Paul Molina Tous droits réservés.

to Google