Platform bug?

I noticed that my player does not fall immediately when he reaches the end of the platform.
The player remains suspended as if he were on the platform.
But if I walk a little further, the player falls.
it’s as if the platform is longer than what you see.

Has it ever happened to anyone?

platforms = this.physics.add.staticGroup();
platforms.create(1022, 525, 'ground4').setScale(1.5).refreshBody();
this.physics.add.collider(player, platforms);

Schermata 2020-03-27 alle 17.25.19

Turn on game config physics.arcade.debug.

Schermata 2020-03-27 alle 17.40.45

smaller bounding box

Sorry but I don’t understand…

The physics body is still on the platform.

You need to resize the physics body when you create the player. See line 33 of the example.

1 Like

Thank youuuu!!! It works!!