0 votes

Is possible to increase the scroll limit actually has 65535, for some projects thos can be a problem, anyone knows why is this limit so small?

in Engine by (91 points)

1 Answer

0 votes
Best answer

the scroll limit is actually int, so it can be set between –2147483648 and 2147483647.
but in editor, range controller provides -65536 to 65535 which can be satisfied most of games.
if it provides whole range of int, you can't control the number with range controller.

if you want to set the limit value larger, you can do it with script.

print("limit right = ",get_node("Camera2D").get_limit(MARGIN_RIGHT))
get_node("Camera2D").set_limit(MARGIN_RIGHT, 6553500)
print("limit right = ",get_node("Camera2D").get_limit(MARGIN_RIGHT))

it prints

limit right = 65535
limit right = 6553500

it would be better if editor accepts lager value when set large number manually.

by (9,794 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.