Better screen

This commit is contained in:
2024-07-10 23:59:07 -07:00
parent 8b5841e861
commit ae16ae01b2
90 changed files with 1579 additions and 181 deletions

View File

@@ -123,7 +123,7 @@ func start_main_script(s):
ScriptBuilder.current_script = s
func _unhandled_input(event):
if event is InputEventMouseButton and event.is_pressed():
if event is InputEventMouseButton and event.is_action("interact"):
print (ego.position, pathfind.to_local(get_global_mouse_position()))
var path = NavigationServer2D.map_get_path(map, ego.position, pathfind.to_local(get_global_mouse_position()), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(ego, path)).can_interrupt().build(self, "_on_script_complete"))