I just updated an old game from 2.16 to 2.20 and I noticed my rabbits are not jumping forever.
After they are created they stop bouncing and just stay on the ground. This didn’t happen in 2.16 and I would like to know how I can prevent local gravity from affecting my rabbits’ jumps.
Here is the Bunny class
The body simply begins to slow down until its velocity.y becomes 0. idk why
It is important to mention that my game is for mobile and has a very small 280x128 canvas size.
I don’t have any world gravitation and the Bunny class doesn’t have YSpeed modifiers.
I feel like my only solution will be to go back to 2.16 and start creating optimizations to make it run at 60FPS in that version.
But it was very difficult for me. I couldn’t get more than 45FPS so I updated to 2.20 and then i had that problem with the rabbits.
Thanks a lot! I downgraded back to 2.16 and it runs at 60FPS with Phaser.CANVAS on mobile without any problems.
Version 2.16 is my favorite version of all Phaser versions.
I’m glad I can still use it even in 2024.
Another question: What is GameConfig.forceSingleRender used for?