# Character Random Movement

**URL:** <https://forum.kirupa.com/t/character-random-movement/319551>\
**Category:** flash\
**Created:** [February 24, 2011, 12:44pm UTC](https://forum.kirupa.com/t/character-random-movement/319551 "2011-02-24T12:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane5317](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@shane5317](https://forum.kirupa.com/u/shane5317)\
**Post date:** [February 24, 2011, 12:44pm UTC](https://forum.kirupa.com/t/character-random-movement/319551/1 "2011-02-24T12:44:50Z")

</div>

Hello everyone

I got a problem with my assignment. I want to make my character moves randomly that is character will base on random numbers(for example generate 4 random numbers) and character’s favorite(for example fast food, west food, Chinese food) to move. The character will move randomly with 4 direction that is move up, move down, move right and move left(any speed will do). Should i have four function with four movement.

Any ideas?:jail:
