I still remember how I used to program. My syntax was horrible:
if keyboard_check(vk_left)
{
x-=5;
}
if keyboard_check(vk_right)
{
x+=5;
}
if keyboard_check(vk_up)
{
y-=5;
}
if keyboard_check(vk_down)
{
y+=5;
}
This is how I do it now...So much better:
if (keyboard_check(vk_left)){
x -= 5;
}
if (keyboard_check(vk_right)){
x += 5;
}
if (keyboard_check(vk_up)){
y -= 5;
}
if (keyboard_check(vk_down)){
y += 5;
}
Just imagine hundreds or sometimes thousands of lines of code similar to the first one....what a nightmare lol.