Godot Version
Godot 4.4.stable
Question
I am trying to create a build mechanic for a 2D game I am working on, using Godot 4.4.stable as my game engine. I have achieved some progress, but the buildings are not being placed when they should be. Additionally, the wrong tiles are being selected. The idea is when you click on the “Build” button, it enters “planning” mode, where you can place buildings on screen. Afterwards, when you exit the “planning” mode, a message pops up to ask if you want to confirm building the buildings you placed. I haven’t made the “confirm” message yet, since the building mechanic isn’t working.
Even though I achieved some progress, I have no idea how to fix this. I practiced and tinkered with Godot for almost half a year, so I’m still learning. My code is most likely a mess unfortunately.
Below is a link to a short video showcasing what I am experiencing:
This link is my code: