I made a game but the 2d sprite has the unexpected identifier error how do i fix it?

“Class body” refers to the part of the script that isn’t indented; you can’t assign values there. You need to indent the line and put it under a function for it to work

Honestly, I’m dumb and idk how to make a function code so I’m going to search up a tutorial really quick:)

check back and it worked tysm