# Animation directions

**URL:** https://forum.kirupa.com/t/animation-directions/319552
**Category:** flash
**Created:** [February 24, 2011, 1:36pm UTC](https://forum.kirupa.com/t/animation-directions/319552 "2011-02-24T13:36:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Evaeva](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Evaeva](https://forum.kirupa.com/u/Evaeva)
#### Post date: [February 24, 2011, 1:36pm UTC](https://forum.kirupa.com/t/animation-directions/319552/1 "2011-02-24T13:36:22Z")

</div>

I am using this turtural:

[http://www.kirupa.com/developer/flashcs4/falling\_snow\_as3\_cs4\_pg4.htm](http://www.kirupa.com/developer/flashcs4/falling_snow_as3_cs4_pg4.htm)

and will to using bubbles instead of snowflakes. I want the animation to go up, instead of down.

Can anyone help me to change the code in the .as-file, so my bubble will go up instead of falling down?

I have tried to change the following code:

xSpeed = .05 + Math.random()\*.1;

to  
xSpeed = .05 - Math.random()\*.1;

This makes the bubbles go up, the the animations does not continue…
