Having obstacles on a complex map


I am working on a RTS game. The problem is with the map. Basically, I can’t have a river that acts like an obstacle because the hitbox is AABB. There must be a workaround for this right?

Hi dhawk, you could have hidden obstacle blocks and just arrange and resize them to the shape of the river. That’s a simple solution. But you can also create your own hitbox by clicking on ‘edit collision masks’ in the properties tab of an object. You can add as many as you want but each one must be convex. But for something like a river, the simple solution is probably the best.