Guest User

input script

a guest
Oct 14th, 2017
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extends Camera2D
  2.  
  3. func _ready():
  4. set_process_input(true)
  5.  
  6. func _input(event):
  7. if event.type == InputEvent.SCREEN_DRAG:
  8. move_local_x(-event.relative_x)
  9. move_local_y(-event.relative_y)
RAW Paste Data