Jump to content

How to create move step?


Recommended Posts

# cannot move
steps = this.physics.add.staticGroup();
step1 = move_tiles.create(250, 350, 'step')
this.physics.add.collider(player, steps);

# can move but gravity is enable if player collide steps
step1 = this.physics.add.sprite(250, 350, 'step');
this.physics.add.collider(player, step1);


Link to comment
Share on other sites


  • Recently Browsing   0 members

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