Water sprinkler (duplicateSprite)

 

The purpose is to show water sprinkler animation.
It's only ActionScript. You couldn't test in SwishMax only in dans FlashPlayer and in a browser (Export / SWF+HTML)
I suppose you know well how to create objects, thus I wont insist on.

⇒ animation ⇐

Creating Objects

1 - Set up movie size 640x433 and background color #6666FF.
Frame Rate 50 fps or whatever.

2 - Draw a rectangle in the lower half of the stage.
Set up a linear gradient colors. Turn x-axis : -90°.

   

3 - Insert a void sprite at point 320, 300. Name it dot.(important) Target toggled

Scripts

In Outline, select scene, get in Expert Mode. Enter the following script :

In Outline, select sprite dot. Enter the following script :

Et Voilà, that's it.

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.019 sec.

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

to Google