Hi!
In my game the player builds a tower. My game runs stable 60 Fps and is really smooth on my android phone.
After the round I scroll to the middle of the tower and zoom out the layer to create a really cool effect.
However when I zoom out the layer the FPS drop to like 1-5. When the layer has zoomed out the game returns to 60 fps again.
I use 2 System events when the game ends:
1. To scroll to middle of tower I use:
Scroll to y (min(Scroller,scrolly+speedscroll*dt))
2. While the game scrolls to middle of tower I also zoom out the towerlayer
Set layer "Tower" scale to max(zoom,LayerScale("Tower")-speedzoom*dt) <-- Makes FPS drop to 1-5
I'm using the runtime 3 and testing on a honor 9 lite
Like I said. The frames only drop when the layer scale rate changes. If I create a small tower and the game does not need to zoom everything runs smooth when the round ends.
Any idea why I cant't change layer scale rate?