Generating Arrows

When I’m making the DDR Game i want it to have the arrows randomly go up the screen and when it gets to a certain area i want to press a key and get only 5 points. If you know how to make random movie clips come up plz tell me and if you know how to make it so when it gets to a spot to enable keys to be pressed for points.

I’m not sure what you’re saying in the second part, but I can tell you how to have something apear randomly at the bottem of the screen and move up the screen.

Create a movie clip arrow and attach the following code to the outside of the clip.

Assuming the movie width is 600 pixels.

onClipEvent(load){
//change the 600 in this formula to the width of the movie.
location=Math.random()*600+1;
//this is assuming you want a random velocity. Change the 4 to
//whatever will work best for the velocity, or take the random
//code out and just assign a velocity, if you would prefer it
//remain the same.
velocity=Math.random()*4+1;
}

onClipEvent(enterFrame){
//this just says, every time this movie clips timeline changes
//frames, do this.
_y-=velocity;
}

Something like this, would set it up to do something once it’s height got to less than 40 pixels from the top of the screen.

onClipEvent(enterFrame){
//this just says, every time this movie clips timeline changes
//frames, do this.
_y-=velocity;
if(_y<40){
this.keyboardTrip=true;
}else{
this.keyboardTrip=false;
}
}

The variable keyboardTrip could then be used by other movie clips to detect and interact with the clip.

Could you explain a little more what it is you’re looking to have the arrow do once it reaches a certain height?