forked from unfa/liblast
Merge branch 'master' of github.com:unfa/jam-01 into master
commit
3a39087f1f
|
@ -56,7 +56,7 @@ func _ready():
|
|||
func pick_random():
|
||||
return randi() % len(clips)
|
||||
|
||||
func play():
|
||||
sync func play():
|
||||
|
||||
if PlayUntilEnd:
|
||||
if player.playing:
|
||||
|
|
|
@ -98,12 +98,12 @@ remote func walk(direction: Vector2):
|
|||
velocity.z = lerp(velocity.z, - walkVelocity.rotated(- self.rotation.y).x, interpolation)
|
||||
|
||||
if walkVelocity.length() > 0 and is_on_floor():
|
||||
$Sounds/Footsteps.play()
|
||||
$Sounds/Footsteps.rpc("play")
|
||||
#
|
||||
remote func jump():
|
||||
if is_on_floor():
|
||||
velocity.y = JUMP_VELOCITY
|
||||
$Sounds/Jump.play()
|
||||
$Sounds/Jump.rpc("play")
|
||||
|
||||
remote func mouselook_abs(x, y):
|
||||
camera.rotation.x = x
|
||||
|
|
Loading…
Reference in New Issue