(sorry for bad english) so far i did everything i can think to make my game perform best but i didn’t get exactly the result i wanted.
What I’ve done for optimization so far
I delete all obstacles that go off the screen
In the videos I’ve watched, the ground moves and when it goes off the screen, it goes back and forth and this process is repeated, but instead I put the ground animation moving to the background and I put a force pushing the character back. Do you think this will give better performance?
Other than that, I can’t think of anything, how can I optimize my game better?
In my platform game I started to have a problems with optimization too. I found here on the forum some people commenting about the collision events and to optimize it would be good to limit the distance. It’s saved my simple game. I don’t know if it’s gonna be helpful to you.
But take care with the distance. If you put the distance in pixels less than sprite size probably you’ll have problems with collision, because it will happens only when the distance is below in X pixels even you already colision with the object.