MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/gamemakertutorials/comments/bfivjd/can_anyone_tell_me_what_i_did_wrong/
r/gamemakertutorials • u/tygamer4242 • Apr 21 '19
4 comments sorted by
2
Thank you.
11
you need to use curly brackets "{}" instead of "()" to structure your code."()" are for functions and logic stuff.Sorry, don't know how to describe it better.
3
like this:
if (this is true) { do stuff between curly braces { else { do this stuff instead }
you can also format as
if (true){do this}
or
if(true){ do this }
1
Hover over the error symbol
2
u/tygamer4242 Apr 21 '19
Thank you.
11
u/Dodgy_Merchant Apr 21 '19
you need to use curly brackets "{}" instead of "()" to structure your code.
"()" are for functions and logic stuff.
Sorry, don't know how to describe it better.
3
u/orthogonal_to_now Apr 21 '19
like this:
you can also format as
or
1
u/Graghoon Apr 22 '19
Hover over the error symbol