• Content Count

  • Joined

  • Last visited

About CoderHog

  • Rank

Profile Information

  • Gender
  1. Thanks samme! I forgot about .body. The drag property was already 0, but the friction was set to 1. platform.body.friction.x = 0; It is working real smooth now
  2. It was like that before. The game world was pretty wide and the player was the only moving object. But the game ran at 30 fps or less on mobile. Making a smaller world improved the performance a lot, but made that problem appear. :/
  3. Hi, I'm making a simple platform game in which the player is always at the center of the world and the objects move towards him from right to left. When the player is over a moving platform, it sticks to it and they move together. It removes the player from its original position. I have tried setting the player.body.x to on update, but it looks clumsy. You can see when the player position is being reseted. update: function () { player.body.x =; } The documentation shows two body properties that I could use: drag and friction. But I can't get to make any of them work out. This is the position I want the player (white ball) to stay on: After the play jumps over a platform and sticks to it: Does drag/friction work on arcade physics? If so, how could I use it? Should I set one of these properties on the platforms or on the player? Any help is appreciated! Thanks in advance!