jamesorgames_312 Posted August 19, 2015 Share Posted August 19, 2015 Can anybody help me make my player0, and player1 collide with the playfield in Batari? I will attach my code. If you can help me, that would be great! Editing my code, would be even better! Thank you very much! fnafmusic.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 19, 2015 Share Posted August 19, 2015 There are two main ways you can do it. You can use lazy sticky collision detection where sprites stick and bounce against playfield pixels or you can convert their positions to playfield pixel coordinates and look ahead in the direction they are moving so there will be no sticky/bouncy collision. The added benefit is that the sprites can glide along walls as if they are sliding on greased ice. Quote Link to comment 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.