WIP: Some updates

This commit is contained in:
Nikolai Rodionov 2025-02-08 19:49:51 +01:00
parent 67b981365e
commit 60c3694ba6
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B

View File

@ -43,6 +43,8 @@ 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:
if not multiplayer.is_server():
print("jumping")
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
if multiplayer.is_server():
#if shooting: