Erik Zimmermann Posted February 8, 2022 Share Posted February 8, 2022 (edited) I will make a little car racing game. would like to check position before the car collides with the playfield. Whats the best way to do this? I don't calculate the coordinates for pfread. My car is 8x8 pixel and playfield had 32 lines. How can help me? CarCollision.bas Edited February 9, 2022 by Erik Zimmermann Quote Link to comment https://forums.atariage.com/topic/331020-need-help-check-position-before-collision-with-playfield/ Share on other sites More sharing options...
+Gemintronic Posted February 8, 2022 Share Posted February 8, 2022 * Use pfread or * Put a missile or ball just ahead of the player at the tip that's moving forward. Check the collision of that instead of the player sprite. Note that the missiles and ball are always going to be smaller than the player sprite so it's not complete collision detection that way. Quote Link to comment https://forums.atariage.com/topic/331020-need-help-check-position-before-collision-with-playfield/#findComment-5001140 Share on other sites More sharing options...
Erik Zimmermann Posted February 8, 2022 Author Share Posted February 8, 2022 (edited) i will use pfread. In the future, i will make a enemy AI. the car moves independently on the map. It doesn't touch walls. It finds free space to move. Maybe it haunts me too. CarCollision.bas Edited February 8, 2022 by Erik Zimmermann Quote Link to comment https://forums.atariage.com/topic/331020-need-help-check-position-before-collision-with-playfield/#findComment-5001254 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.