daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # mouse_controller.gd
  2. extends "res://Game/Players/Controllers/base_controller.gd"
  3.  
  4. func _process_input():
  5.     var mouse_pos = _board_data.get_local_mouse_position()
  6.     var found_obj = _board_data.find_object_at(mouse_pos)
  7.    
  8.     hover_over(found_obj)
  9.    
  10.     if Input.is_action_just_pressed("left_click"):
  11.         swap_or_select(found_obj)
RAW Paste Data
Top