i keep getting out of range pixel when using a certain method for collision detection
Posted: Sun Sep 16, 2018 1:29 am
so im making a top down kart racing game and it is coming along great, but i am using a kind of strange method for collision detection because i am so bad at coding. you see i made a separate picture of the track so that i can make certain areas do something a little different, for example, blue is a blockade, red slows you down, and green is road.
but whenever i load up the game the collision doesn't work at all, the speed will act as if i'm in the gravel on certain parts of the road and acts as if i am touching a wall in other parts and sometime i can just go through walls.
but whenever i load up the game the collision doesn't work at all, the speed will act as if i'm in the gravel on certain parts of the road and acts as if i am touching a wall in other parts and sometime i can just go through walls.