# A.s help need code

**URL:** <https://forum.kirupa.com/t/a-s-help-need-code/155388>\
**Category:** Uncategorized\
**Created:** [July 17, 2005, 5:39am UTC](https://forum.kirupa.com/t/a-s-help-need-code/155388 "2005-07-17T05:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![googler](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@googler](https://forum.kirupa.com/u/googler)\
**Post date:** [July 17, 2005, 5:39am UTC](https://forum.kirupa.com/t/a-s-help-need-code/155388/1 "2005-07-17T05:39:53Z")

</div>

well i’m trying to do this by myself but i’ve hit a brick wall.

I am trying to make a sorta dance game iwth the arrows and a keyboard.

now i have a very basic principle to get my coding right before actually making the game.

I have a dynamic text box with a variable name text.

i have a box int he middle where the arow has to be when u press it so u score

i have a box everywhere else but the scoring one to tell u when u miss.

i have a slighty buggy randomisation script AND the box disappears half way up the screen for sum reason.

this is my script so far

onClipEvent (enterFrame) {  
if (Key.isDown(Key.LEFT)) {  
if (\_root.leftarrow, hitTest(\_root.block1)) {  
\_root.text = “Good”;  
} else {  
\_root.text = “”;  
}  
}  
}  
onClipEvent (enterFrame) {  
i = 0;  
}  
onClipEvent (enterFrame) {  
if (\_name == “leftarrow”) {  
if (!(random(10))) {  
this.duplicateMovieClip(“MC”+i, i);  
\_root[“MC”+i].\_y = 400+\_height+5;  
\_root[“MC”+i].\_x = random(550);  
i++;  
}  
} else {  
\_y\<0 ? this.removeMovieClip() : \_y -= 20;  
}  
}

now what i want that script to do is make the left arrow randomly rise in ONE LINE from bottom of screen to top.  
when u hit the left arrow i want it to dissapear.  
if it disappears in the box u get a good message  
outside the box u get a miss.

i’ll do the scoring code myself but what i need is…actually stuff the randomisation.

all i want is the code to make the box disapear wen i hit the left key. and give the either good or miss message.  
i want a movie clip to play where it disappears aswell.  
name the clips watever u want but have a legend at the end please.

if u knoe how to help please do… i will give u credit in the finished product.
