Vieo Posted August 27, 2013 Share Posted August 27, 2013 I'm wanting to create a tile which the player can jump through but collide/land on the top, is this possible? Thanks Link to comment Share on other sites More sharing options...
p01 Posted August 27, 2013 Share Posted August 27, 2013 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 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 More sharing options...
mwatt Posted September 14, 2013 Share Posted September 14, 2013 In a reply to a question about "Cloud Tiles" in the "March to 1.0" topic in this Forum, Rich replied that Phaser has support for "one way" / "n+ way" tiles, which sounds a lot like what you are wanting to know about. Link to comment Share on other sites More sharing options...
PNTR Posted September 14, 2013 Share Posted September 14, 2013 Original post might be old but there is an example in the "examples" folder under "tilemaps" called "mapcollide" that show you how it works. Link to comment Share on other sites More sharing options...
Recommended Posts