Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

TileSprite collisions?


Recommended Posts

I've got a ground TileSprite that is used to show a running ground beneath the player:

create: function() {   ...  this.ground = game.add.tileSprite(0,400, 335,112,'ground');  ...}, update: function() {  ...  this.ground.tilePosition.x -= 5;  ...}

I want a collision between the player (which has physicsEnabled on it) and the ground. 


How can I achieve this? 

Do I need to create a dummy sprite that has phsyicsEnabled on it that lays over the ground tileSprite, or can I collide with the ground tileSprite?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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