Jump to content
IGNORED

Collide with Playfield


jamesorgames_312

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...