2024-02-22 00:10:13 -06:00
|
|
|
extends Node
|
|
|
|
|
2024-03-17 21:56:16 -05:00
|
|
|
var savedPos = Vector2.ZERO
|
|
|
|
|
2024-02-22 00:10:13 -06:00
|
|
|
func boolToNumb(val, offset=0):
|
|
|
|
return float(val) + offset
|
2024-03-13 16:15:55 -05:00
|
|
|
|
|
|
|
func getCurrentActions():
|
|
|
|
var actionsList = InputMap.get_actions()
|
|
|
|
var validActions = {}
|
|
|
|
for action in actionsList:
|
|
|
|
if not "ui_" in action:
|
|
|
|
if Input.is_action_just_pressed(action):
|
|
|
|
validActions[action] = 1
|
|
|
|
elif Input.is_action_just_released(action):
|
|
|
|
validActions[action] = 2
|
|
|
|
return validActions
|
|
|
|
|
|
|
|
func getRecordingFrameCount(recording):
|
|
|
|
var frameSort = []
|
|
|
|
for frame in recording:
|
|
|
|
frameSort.append(frame)
|
|
|
|
|
|
|
|
frameSort.sort()
|
|
|
|
return frameSort[-1]
|