Excuse for the delay,i was out of house for about 1 week!
Very thanks for the method,i now study it to see if i can adapt it for my shoot-em up!
Actually i think i use a method very slower.....i use this method because it's the only mode to make my code working!
Basically for every bullet i check collisions.....and for every enemy bullet i check for collision...and for every alien i check collision...if i don't make this way i receive an error "object doesn't exist" or similar...it's because i think that the collisions check start even if no object are onscreen.....i use function for my game.
The fisrt function draw the background and the player......after that if i hit some button on the keyboard i create object to interact with,but this function is enabled only if i hit buttons....the other function are ALWAYS played...and i think it's the error!
Those function make the various object fly around the screen,and that's because they are always active...if not i don't see any object around!
I think that my game logic is terrible....but it's the only way i can see anything moving :P
If i have the time i post the whole code (commented...but in italian -_-' )so everyone see the orrible logic that i use ^^
Thanks.
Very thanks for the method,i now study it to see if i can adapt it for my shoot-em up!
Actually i think i use a method very slower.....i use this method because it's the only mode to make my code working!
Basically for every bullet i check collisions.....and for every enemy bullet i check for collision...and for every alien i check collision...if i don't make this way i receive an error "object doesn't exist" or similar...it's because i think that the collisions check start even if no object are onscreen.....i use function for my game.
The fisrt function draw the background and the player......after that if i hit some button on the keyboard i create object to interact with,but this function is enabled only if i hit buttons....the other function are ALWAYS played...and i think it's the error!
Those function make the various object fly around the screen,and that's because they are always active...if not i don't see any object around!
I think that my game logic is terrible....but it's the only way i can see anything moving :P
If i have the time i post the whole code (commented...but in italian -_-' )so everyone see the orrible logic that i use ^^
Thanks.