WIP: Some updates

This commit is contained in:
Nikolai Rodionov 2025-02-09 16:30:52 +01:00
parent 7a36a173b5
commit 90cd42c1cf
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ func _physics_process(delta: float) -> void:
if not shared_node.is_on_floor():
shared_node.velocity += shared_node.get_gravity() * delta
if shared_node.is_on_floor() && jumping:
print("jumping" + str(name))
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
jumping = false
var direction := (shared_node.transform.basis * Vector3(input_direction.x, 0, input_direction.y)).normalized()

View File

@ -24,7 +24,7 @@ properties/4/replication_mode = 2
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_8la7e"]
properties/0/path = NodePath("SharedNode:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/0/replication_mode = 2
[node name="ServerNode" type="Node3D"]
script = ExtResource("1_bau14")