Quote from: ipriceYou haven't DIMensioned COLPOX[] or COLPOY[]thanks very much! now it's all clear... i must write the arrays at the beginning... thanks again
Colpox and colpoy are arrays - you are going out of bounds in one or other (or both) arrays by increasing the n value. If you add -Code (glbasic) SelectDIM colpox[100000]
at the beginning of your code, you can see the bullet.
DIM colpoy[100000]
Obviously you need to ensure that these still don't go out of bounds, by resetting their value to zero once they are of no use (hit something or off screen etc.)