So I was attempting to make realistic gravity. And here’s the scripts:
(i put this in default)
(i put this in update)
And here’s the error I got:
can someone help me? (here’s the file: realistic gravity1-26-2021_11-38-05.wick (2.6 KB) )
So I was attempting to make realistic gravity. And here’s the scripts:
(i put this in default)
(i put this in update)
And here’s the error I got:
can someone help me? (here’s the file: realistic gravity1-26-2021_11-38-05.wick (2.6 KB) )
i’m not experienced with using let
, i would use this.yvel = 0
and change the instances of yvel
to this.yvel
.
and remember that if your gravity is wonky, some things will need to be negative instead of positive and vice versa.
let
Only lives in the declared scope, so it will not be available for outside his onEvent function…
ok, thx for the feedback! im going to fix this so the whole forums can enjoy and use!