# Random movement a creating vars with button

**URL:** <https://forum.kirupa.com/t/random-movement-a-creating-vars-with-button/184029>\
**Category:** Uncategorized\
**Created:** [April 1, 2006, 6:06am UTC](https://forum.kirupa.com/t/random-movement-a-creating-vars-with-button/184029 "2006-04-01T06:06:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpgfan](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@rpgfan](https://forum.kirupa.com/u/rpgfan)\
**Post date:** [April 1, 2006, 6:06am UTC](https://forum.kirupa.com/t/random-movement-a-creating-vars-with-button/184029/1 "2006-04-01T06:06:17Z")

</div>

How do i give a movieclip a random movement? as in

-just random moving around  
-going like 3 in then randomly turning the goin 3 in again.

and making a button that created a var so i can make a war game like you manke 3 tanks, if thaey all run of 1 var, when 1 takes damage they all do. How do i make a button that creates multiple varibles? like tankhp1 tankhp2 tankhp3, and so on. Thx, im experamenting righ now but i doubt ill have any success. plz help?
