Hey! This is my first thread, I'm new here, so hello everyone!
I started last week with phaser, and I am trying to test some features like extend the world, adding other sprites to background, adding a camera, all of this in the "game" that you make in this tutorial.
So now, I want to learn how friction works in platforms or ground.
platforms = game.add.group();
platforms.enableBody = true;
var ground = platforms.create(0, game.world.height - 64, 'ground');
ground.body.immovable = true;
ground.body.friction.x = 0;
I want to set my ground like ice and that the player can slide, but it didn't work and I don't know why.
If there is no other code that involves "ground", maybe the problem is with the player sprite? :S
The version of phaser i am using is 2.9.4 btw.