Skip to content

Instantly share code, notes, and snippets.

@identity2
Created June 8, 2019 13:00
Show Gist options
  • Save identity2/dd4b08ed65eda1538af6c28fbdca5038 to your computer and use it in GitHub Desktop.
Save identity2/dd4b08ed65eda1538af6c28fbdca5038 to your computer and use it in GitHub Desktop.
# Scroll the screen (aka. move the camera) when the character reaches the margins.
var drag_margin_left = 0.3
var drag_margin_right = 0.7
# The left/right most edge of the scene. (The camera couldn't move past these limits.)
var right_limit = 1000000
var left_limit = -1000000
# The size of the screen
var screen_size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment