WIP: Some updates
This commit is contained in:
parent
67b981365e
commit
60c3694ba6
@ -43,6 +43,8 @@ func _physics_process(delta: float) -> void:
|
|||||||
if not shared_node.is_on_floor():
|
if not shared_node.is_on_floor():
|
||||||
shared_node.velocity += shared_node.get_gravity() * delta
|
shared_node.velocity += shared_node.get_gravity() * delta
|
||||||
if shared_node.is_on_floor() && jumping:
|
if shared_node.is_on_floor() && jumping:
|
||||||
|
if not multiplayer.is_server():
|
||||||
|
print("jumping")
|
||||||
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
|
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
|
||||||
if multiplayer.is_server():
|
if multiplayer.is_server():
|
||||||
#if shooting:
|
#if shooting:
|
||||||
|
Loading…
Reference in New Issue
Block a user