OK this is the final promblem with my game before its ready for the W.I.P forum. This code and promblem is sort of messy but i will try to explain it the best i can. First im going to post a photo and the code.
Ok the point of this game is to collect the asteroids within the time limit. Now object 152 or the sphere is the player. The promblem is when the player collides into the asteroid i want the asteroid to get deleted,but in the loop the asteroid is gettinggn checked for collision with the sphere so when the asteroid gets deleted the game crashes because it says object does not exist. I already tried the repeat until loop but that doesnt help because it turns of collision detection after the first asteroid collides with the sphere. Hiding the asteroids wont work in my case so does anyone have any solution. Please help this is my last promblem. Thanks so much.
for e=205 to 383
if object collision (152,e)=1
score=score+10
delete object e
endif
next e
THis is the code specifially for the collision detection before the asteroids and the player.
Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....