Jump to content

Slopes with Tiled


Recommended Posts

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: 





Link to comment
Share on other sites


  • Recently Browsing   0 members

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