GLBasic forum

Main forum => GLBasic - en => Topic started by: WAAAAAA on 2006-Aug-13

Title: somethings wrong with sprcoll
Post by: WAAAAAA on 2006-Aug-13
spr coll is not accurate a bullet is going straight thru my enemy but hits right next to it.... and its a pain in the ass trying to make it look right...
Title: somethings wrong with sprcoll
Post by: mikiex on 2006-Aug-13
Are you very sure that your bullets are not just moving too fast?
Good idea to post a code snippet of it failing
Title: somethings wrong with sprcoll
Post by: BumbleBee on 2006-Aug-13
Hello WAAAAAA

Do you really need pixelcollision for your shooter game?
Use boxcollision (BOXCOLL). It's not so accurate but much faster than pixelcollision.
If you don't make a slow motion shooter.:) you don't need pixelcollision.
Cause you can't see collisions between bullet and enimies. It's just too fast.


Cheers
Title: somethings wrong with sprcoll
Post by: WAAAAAA on 2006-Aug-14
boxcolli is boxcoli.... i want pixel based damnit :P
bah i made it look half decent....
Title: somethings wrong with sprcoll
Post by: bigsofty on 2006-Aug-14
Is your code...

move sprites
check collisions
screen swap

if it is then whats colliding on the screen will allways be a frame behind whats actually on the screen

check collisions
move sprites
screen swap

to fix.

Ian
Title: somethings wrong with sprcoll
Post by: WAAAAAA on 2006-Aug-17
my sprites dont set off spr colli like your sample program in the help mine are going off over to the left to far why is that?
Title: somethings wrong with sprcoll
Post by: Kitty Hello on 2006-Aug-17
Hard to tell from distance. Please post some code that compiles or send me the whole thing as email. We should get an attachment mod for this forum...