WIP: Some updates
This commit is contained in:
parent
7a36a173b5
commit
90cd42c1cf
@ -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()
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user