Basically I tried making a game where you control an 'O' and random '0's pop around the screen and when you hit one you lose so it's like how long can you stay. But I can only get one loop running at a time so I have 2 loops(One for character movement and the other for the '0's) and I tried repeat loops to but no matter what I try it only runs one loop at a time and the other doesn't run until the first loops conditions are met then it goes vice-versa.
Code:
Code:
8→A:4→B
ClrHome
While 1
randInt(1,10)→D
randInt(1,26)→E
Output(D,E,"0"
Wait 2
If B=E and A=D
Then
ClrHome
Stop
End
End
Repeat K=105
getKey→K
Output(A,B,"O
If K=24 and B>1
Then
Output(A,B," "
B-1→B
End
If K=26 and B<26
Then
Output(A,B," "
B+1→B
End
If K=34 and A<10
Then
Output(A,B," "
A+1→A
End
If K=25 and A>1
Then
Output(A,B," "
A-1→A
End
If K=105
Then
ClrHome
Stop
End
End