Hi all, I'm working on a side on WW1 trench game and I'm having trouble with the movement of the soldier sprites. At the moment the soldiers have a platform behavior and are using the 'simulate control' action. The problem is the collision checks go extremely high (>1000 PER TICK!) when only a few soldier sprites are present. In the attached image the red dotted line shows the collision polygons of the ground tilemap and the red squares are the Trench colliders that register when the soldiers are in a trench (there are only 2 on the layout).
I was wondering if anyone could give tips on any potential alternatives to the platform behavior that accomplish the same movement (able to move in and out of trenches and horizontally on the flat parts), or any optimizations to the platform behavior that make it viable.
At the moment I optimize by disabling the soldier's platform and collision behavior when they are stationary. This drops collision checks to 0 when applied to all soldier sprites. Obviously this isn't an effective solution because the sprites spend most of their time moving.
Any advice would be greatly appreciated, also while you're here what do you think of the look of the game?