I felt like I had gained a decent grasp on core coding concepts (variables, if statements, loops) and I familiarized myself with Godot, so I wanted to start making small games to learn more by actually putting the core concepts into practice.
I started making a small arcade style beat 'em up that's just 1 simple level with a boss at the end. I coded the movement and the idle and run animations and it was all good, but then I started to primarily rely on ChatGPT to teach me how to implement more features like simple attacking and enemy hurt boxes.
What I would do is ask it something like "I want to implement attacking, can you teach me how and explain to me what the code does?" and at the start it was cool because it would just straight up write me code for attacking and teach me the types of nodes I needed to use.
I still made sure that I actually understood what I was writing, but as time went on I started encountering a ton of problems. The code that ChatGPT would write me looked correct logically but it rarely worked as intended in Godot. It would always do something unexpected and wrong. I would try my best to explain to ChatGPT and made sure it actually understood what I wanted, but the logic would always have some kind of bug.
Then I would spend hours debugging the issue with ChatGPT. It knew how to write logical code for one feature, but it never worked as intended when put in with the other features.
I posted here about my coding issues twice and multiple people told me that my coding logic is strange and looked cluttered.
So I started realizing that using ChatGPT as a primary tool was a mistake. I could've just searched "how to implement attacks in Godot" on YouTube and I could've found a straightforward and simpler method for it. ChatGPT gave me strange and complex methods that never worked right.
Don't get me wrong, I know the coding basics, and I want to learn more by actually applying the things I learn in small basic games instead of just entering analysis hell where I would watch like 36 hours of tutorials and then never apply anything.
I just need to revamp my strategy and only use ChatGPT as more of a side tool for small logical issues and not having it build the whole game for me.
I'm going to watch more tutorials on YouTube for the specific things I'm gonna implement, but what other strategies can I use to overcome these problems?