Quote: "Also you need to use 2 different variable names when compound looping like that.
Use something like"
for y = 0 to 21
for z = 10 to 31
next z
next y
I was talking about this part of the code.
for z=10 to 32
sprite z,wsx,wsy,5
if sprite exist(z)=1
for z=0 to 21
wsx=wsx(z)
wsy=wsy(z)
next z
endif
next z
see how you have for z twice. It will be in a loop forever like that.
z will always be 22 at the end of the inner loop so the outer for z loop will continually start back at 21 on the next run and it will do this forever. Use 2 different variables in compound loops like this.
for a=10 to 32
sprite a,wsx,wsy,5
if sprite exist(a)=1
for z=0 to 21
wsx=wsx(z)
wsy=wsy(z)
next z
endif
next a
[edit] Also add this part right above the color backdrop 0 Like this
sync on : sync rate 0
backdrop on
color backdrop 0