How am I suppose to go about using the repeat->until loop on my weapons codes? I was thinking of using something like this,
`Started: 6/16/09 4:54 PM
`This is the two player duel mode.
set display mode 800,600,32
sync on
sync rate 60
`Begin the Player arrays
DIM players(4,1)
players(1,1)=100 : players(2,1)=265
players(3,1)=600 : players(4,1)=265
do
circle players(1,1),players(2,1),20
if mouseclick()=1
newx#=mousex()
newy#=mousey()
hit=0
endif
if hit=0
repeat
players(1,1) = curvevalue(newx#,players(1,1))
if abs(players(1,1)-newx#) > 1 then hit=1
until hit=1
endif
sync
loop
For some reason, that didn't work at all, it wouldn't move the player in the least. How do I approach the repeat->until loop?
Thanks!
Zeus