Subject: Issues with Layers, Collisions, and Code in 2D Fighting Game (Godot 4.5)
Hello everyone,
I’m very new to both programming and using Godot Engine, and I’m running into some problems with my project.
The Project:
I’m developing a 2D fighting game. My idea is for each character to automatically get their physics layers and collision masks when they are instantiated into the scene. I want this because I plan to have 10 or more characters and need an efficient way to manage them.
The Problem:
The system isn’t working well. Collisions aren’t behaving correctly, and I’m having trouble properly assigning or configuring the layers between the different character instances. I’ve tried getting help from AI, but even that hasn’t provided a working solution.
My Question:
Could anyone guide me on the best way to handle layers and collisions for multiple character instances in a fighting game? Is there a recommended way to set this up via code or from within the scene?
Any help, code examples, or advice would be greatly appreciated. Thanks in advance!