asteroid 50 works fine, but for some reason asteroids 51 and 52 keep getting stuck on the left side of the screen when they bump into it. Then they just wiggle downward along the left edge. Anyone see why this is happening? I can't figure it out.
here is the part of my code that controls the asteroids movement...
`asteroid to asteroid collisions
if sprite hit (50, 51) = 1
levelspeed1 = -levelspeed1
levelspeed3 = -levelspeed3
endif
if sprite hit (50, 52) = 1
levelspeed1 = -levelspeed1
levelspeed5 = -levelspeed5
endif
`move asteroids
if sprite exist (50)=1
if asteroidx1 > 1024 then asteroidx1 = -15
if asteroidy1 > 768 then asteroidy1 = -15
if asteroidx1 < -15 then asteroidx1 = 1024
if asteroidy1 < -15 then asteroidy1 = 768
asteroidx1 = asteroidx1 - levelspeed1
asteroidy1 = asteroidy1 + levelspeed2
endif
if sprite exist (51)=1
if asteroidx2 > 1024 then asteroidx2 = -15
if asteroidy2 > 768 then asteroidy2 = -15
if asteroidx2 < -15 then asteroidx2 = 1024
if asteroidy2 < -15 then asteroidy2 = 768
asteroidx2 = asteroidx2 + levelspeed3
asteroidy2 = asteroidy2 + levelspeed4
endif
if sprite exist (52)=1
if asteroidx3 > 1024 then asteroidx3 = -15
if asteroidy3 > 768 then asteroidy3 = -15
if asteroidx3 < -15 then asteroidx3 = 1024
if asteroidy3 < -15 then asteroidy3 = 768
asteroidx3 = asteroidx3 - levelspeed5
asteroidy3 = asteroidy3 - levelspeed6
endif