Array Help?

BlitzPlus Forums/BlitzPlus Programming/Array Help?

Dennis(Posted 2004) [#1]
Hi all. I'm trying to write a small program that will emulate DDR (Dance Dance Revolution). I'm only putting in one song just to test how it will work. What I've done is to create an array for each directional arrow, containing its starting y-coordinate, and with each clock cycle the arrows move upward until they reach the receptor arrows at the top of the screen. When the moving arrow is approximately in the frame of the receptor arrow I hit a key, and if timed right a graphic will display and the moving arrow will disappear. This seems to work for the first arrow to reach the top, but none of the subsequent arrows seem to respond to button presses. Here is the snippet of code that is supposed to get rid of them. Can anyone tell me what I am doing wrong? Thanks.

For t=1 To 50
DrawImage rightarrow,600,rightarrows(t)
If MouseHit(1)
If rightarrows(t)<110 And rightarrows(t)>90
DrawImage arrowflash,600,100
rightarrows(t)=-64
FlushMouse
EndIf
EndIf
rightpunches(t)=rightpunches(t)-3 ;move arrows vertically up the screen

Next