"Unexpected Identifier" in class body - My first "tutorial" project (Pin Pon)

Because you’re trying to manipulate the property velocity outside a function, you even need to call it because velocity already starts as zero, but if for some reason you want to change it at the start you need to do it insde a function (like in the _ready function)

1 Like