Kir13y Posted August 25, 2015 Share Posted August 25, 2015 I am a newbie (this is my first game) so don't get mad if this is super simple. So my game is basically a platformer and I am making the levels with Tiled and I am using the following code to load it. map = game.add.tilemap('level1'); map.addTilesetImage('tiles-1'); map.setCollisionByExclusion([ 13, 14, 15, 16, 46, 47, 48, 49, 50, 51 ]); //colidelayer = map.createLayer('Object Layer 1'); layer = map.createLayer('Tile Layer 1');I want to add some slopes but the collision box for the slope is the size of the normal boxes and you can stand on air. It also won't allow you to walk up them and you need to jump onto them like a regular block. Is there an easy fix? Here is an image: Thanks jdnichollsc 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 26, 2015 Share Posted August 26, 2015 You need this tutorial: http://www.joshmorony.com/building-a-running-platformer-in-phaser-with-ninja-physics/ My group: https://www.facebook.com/groups/javascriptgames/ Regards, Nicholls Tom Atom 1 Link to comment Share on other sites More sharing options...
Recommended Posts