This commit is contained in:
bingus_violet 2024-03-13 16:15:55 -05:00
parent 279b5e5599
commit 4f70414ed9
46 changed files with 1485 additions and 170 deletions

View file

@ -2,3 +2,22 @@ extends Node
func boolToNumb(val, offset=0):
return float(val) + offset
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]

View file

@ -1,11 +0,0 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass