Jun-03-2019, 07:58 AM
I have vector ("Asteroids") type movement and I want my player sprite to bounce of things they bump into.
It is best to use 2 .spritecollide checks, one for vertical walls and one for horizontal? That won't work for a tile that can be hit from both angles.
I'm sure it's been done a million times, but I could sure use help finding where to start. Can I somehow check what side of a tile is hit?
It is best to use 2 .spritecollide checks, one for vertical walls and one for horizontal? That won't work for a tile that can be hit from both angles.
I'm sure it's been done a million times, but I could sure use help finding where to start. Can I somehow check what side of a tile is hit?