Minor Fixes

This commit is contained in:
Patrick_Pluto 2024-06-16 00:01:13 +02:00
parent a1a252cdc6
commit 8496773e69
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../Desktop/debug"
export_path="../Desktop/debug.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false

View file

@ -13,6 +13,5 @@ func next():
objectName= "player%d" % playerIndex
print(objectName)
get_node(objectName).start()
get_node(objectName).loadJSON(playerIndex)
playerIndex += 1

View file

@ -11,14 +11,16 @@ func get_input():
velocity = input_direction * speed
func _physics_process(delta):
var toCalculate = position
if active:
get_input()
move_and_slide()
var toCalculate = position
distanceTo += position.distance_to(toCalculate)
print(distanceTo)
if distanceTo > 500 and active:
active = false
$camera.enabled = false
distanceTo = 0
get_parent().next()