M
Marzipan97
Guest
Hello everyone,
Huge newbie here, literally just started today so please, talk to me like I'm stupid so I understand
I've been following Slyddar's tutorials on Youtube to make a game on GameMaker and, at some point, it is recommended to cut/paste your lines of code you've written in your object into scripts so you can easily use them for other objects (sounds legit).
So I did that, except that everytime I create a new script and paste the code into it, what I pasted into the previous script gets deleted, it says it is empty after the "Declare a new function". From what I understand, there was an update where you had to paste your code next to the new function instead of under, so that's what I did and I thought it'd solve the problem, but after rewriting my code for the 4th time, it's gone again! The only one left is the last script I pasted and now my game doesn't work (obviously).
I don't know what I'm doing wrong and I'm getting tired of having to rewrite code all the time. Is there maybe a magic save button I just haven't noticed that locks in my scripts? If someone has an answer to this, I would really appreciate it because I'm this close to tearing my hair out...
Thank you everyone!
Huge newbie here, literally just started today so please, talk to me like I'm stupid so I understand
I've been following Slyddar's tutorials on Youtube to make a game on GameMaker and, at some point, it is recommended to cut/paste your lines of code you've written in your object into scripts so you can easily use them for other objects (sounds legit).
So I did that, except that everytime I create a new script and paste the code into it, what I pasted into the previous script gets deleted, it says it is empty after the "Declare a new function". From what I understand, there was an update where you had to paste your code next to the new function instead of under, so that's what I did and I thought it'd solve the problem, but after rewriting my code for the 4th time, it's gone again! The only one left is the last script I pasted and now my game doesn't work (obviously).
I don't know what I'm doing wrong and I'm getting tired of having to rewrite code all the time. Is there maybe a magic save button I just haven't noticed that locks in my scripts? If someone has an answer to this, I would really appreciate it because I'm this close to tearing my hair out...
Thank you everyone!
Attachments
-
13.9 KB Views: 7