Dear everyone,
I have created a small bird game that is a minigame within my bigger project. On the screenshots below, you can see how it works: The player moves a red button with mouse/touch (called “Proxy”) and the bird (called “Flugvogel”) object follows the Proxy with a short delay. It also rotates the bird sprite in the right direction. I am using the pathfinding behaviour for the bird to make it move towards the proxy. The goal for the player is to collect as many insects as possible.
There is also an event where the player object returns to the starting position automatically if it collides with an enemy (not included in the screenshots).
However, the game is suffering from a lot of stuttering. I don’t know if you can see it from the GIF below but the game simply doesn’t run smooth. I think its a combination of bad performance and maybe a oversensitivity of the rotation/movement of the bird object. It seems that even if I fly in a straight direction, there is a constant stutter/re-orientation of the object.
I am running out of ideas how to solve it as I am pretty much a beginner.
The game is still playable on my computer but someone else has now reported that it’s to laggy to even play on his device (web version). It feels like a slideshow to him.
What can I do? I have attached a screenshot of the events below.
I have already tried certain things:
- Not updating the bird position every frame by adding a timer to the movement event. I thought this could solve the performance issues, but the game felt even more stuttering than before because the smoothness was gone.
- Also tried using something else than pathfinding but I wasn’t able to replicate the same movement/rotation without the extension.