Don't worry about clean code or anything until you're well into your coding journey. If it works, it works. That's the main thing you should be focusing on while you're learning. Also, the fact that two different code structures can lead to (roughly) the same outcome is a
good thing, hahaha. It means you've got twice the chances to get it right! For instance, one of
the most common ways of capturing input for movement is some variation on this little snippet popularised by shaunspalding:
Code:
left = keyboard_check(vk_left);
right = keyboard_check(vk_right);
hsp = right-left;
x += hsp*move_speed;
Is that the only way to capture input for movement? No way! Is it the best way to do it? Probably not. But it works and a lot of people learn it and then use it for a loooong time. That's totally fine. Just because there are different ways of doing it doesn't mean that everyone
has to learn all the ways. So when you're learning, find a method that makes sense to you (whether this is through a particularly good explanation by someone, or it just
feels better) and use that method. As you learn more, you might tweak it over time and eventually you'll get to the point where you're completely inventing your own methods. But that isn't something you need to really think about too much as a beginner.
Go through tutorials and try to understand as much as you can. The GMS Manual is a
great resource for this. You can actually middle-click functions in GMS and it will open the manual page for that function. Whenever someone has you type some code you don't understand in a tutorial, try middle-clicking different parts of it after you've typed it and reading through the manual entry for it. To begin with, it might seem like you're reading nonsense (it feels that way to everyone when they are learning), but over time it will start to make more sense as you use the same code in different places and your brain starts to make connections with why that code gets used when you want a certain something to happen.
I know a few autistic coders and they are great at what they do =D So don't feel like it's impossible, it's just going to be hard (learning to code is hard for
everyone, hahaha).