Jump to content

Tile Collision


Vieo
 Share

Recommended Posts

EDIT: My bad, I didn't realize this post was in the Phaser sub-forum. Then I don't know how the following can be applied in the framework, but you get the idea :P


Tons of platformers have such tiles. The first ones that come to my mind are Bubble Bobble and Rainbow Island.

Basically you need to check the vertical velocity of the player during the collision detection. If the player is going up, go through. If the player is going down, collide/bounce/whatever.

http://www.wildbunny.co.uk/blog/2011/12/11/how-to-make-a-2d-platform-game-part-1/ and the following part about Jump-through platforms might be useful.

Link to comment
Share on other sites

  • 3 weeks later...

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...
 Share

  • Recently Browsing   0 members

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