# Random Animation question

**URL:** <https://forum.kirupa.com/t/random-animation-question/201018>\
**Category:** flash\
**Created:** [September 17, 2006, 8:33pm UTC](https://forum.kirupa.com/t/random-animation-question/201018 "2006-09-17T20:33:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TillySausage](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@TillySausage](https://forum.kirupa.com/u/TillySausage)\
**Post date:** [September 17, 2006, 8:33pm UTC](https://forum.kirupa.com/t/random-animation-question/201018/1 "2006-09-17T20:33:38Z")

</div>

Hi,

Firstly I would like to add thanks to the many posters on here with excellent informtion for newbies to flash like myself, it is by far the best site for info I have found so far.

With this in mind I would like to ask my first question, and a plea for help from those with greater knowledge than I.

I love the random animation code [http://www.kirupa.com/developer/mx/random\_motionMX.htm](http://www.kirupa.com/developer/mx/random_motionMX.htm)

My question is, is it possible to add to that a direction?

For example I want to use a fish as my movie clip to randomise, this code works absolutly brilliant, apart from when the fish goes left it appears to be swimming backwards! As far as I am aware Reverse is not the most common gear for fish, so is it possible to add something to the code that says if movement = left flip animation horizontally, so the fish always appears to be swimming forward?

Thanks in advance for any help  
Tilly
