Hi !
in my game a use collideimage to determine if my ship collide with an enemy.
see the screenshoot, in this case the enemy checked is far the player...
1) so is ImagesCollide perform a rect or oval check before test perfect pixel collision ?
2) or should i code my own check before call imagescollide to increase my game performance ? For example :
a) check if i've the ennemy is inside the 'player oval' (radius collision test, there are some formulaes posted somewhere)...
b) ... if it's the case call imagescollide for perfect collision check
Need your suggestions and your experience !
Thanks !
in my game a use collideimage to determine if my ship collide with an enemy.
If ImagesCollide(j.hImage,j.PosX,j.PosY,j.Frame,hImage,PosX,PosY,Frame) Then TExplosion.Creer(PosX, PosY) endif
see the screenshoot, in this case the enemy checked is far the player...
1) so is ImagesCollide perform a rect or oval check before test perfect pixel collision ?
2) or should i code my own check before call imagescollide to increase my game performance ? For example :
a) check if i've the ennemy is inside the 'player oval' (radius collision test, there are some formulaes posted somewhere)...
b) ... if it's the case call imagescollide for perfect collision check
Need your suggestions and your experience !
Thanks !