Hello everyone,
I'm not completely new to Godot, but I'm trying to learn more about the best practices for using the engine.
I'm currently trying to implement a combo system for a platformer game. As each attack has a different hitbox size, I've added a different Area2D node per attack.
I've done that by adding multiple Area2D for each attack:
My question is, is it better (performance-wise) to have multiple Area2D and enable/disable them after each attack or have a single Area2D node and switch the collision shape with every attack?
I thought also about changing the region of the collision shape programmatically, but isn't that worse?
I'm not sure, but I'd like to hear your opinion or experience if you have worked on such a system differently!