Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | OmriOn |
ok that worked but now i’m getting another error: “Parser Error: Expected end of statement after expression, got Built-In Func instead.”
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | OmriOn |
ok that worked but now i’m getting another error: “Parser Error: Expected end of statement after expression, got Built-In Func instead.”
Reply From: | jgodfrey |
Your error is in those last 2 lines.
position.x clamp(position.x, 0, screen_size.x)
position.y clamp(position.y, 0, screen_size.y)
You’re missing =
signs there. So, this:
position.x = clamp(position.x, 0, screen_size.x)
position.y = clamp(position.y, 0, screen_size.y)
ohh my god thank you i was so dumb to not realize that
OmriOn | 2023-02-03 14:21