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

  • Recently Browsing   0 members

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