fixed glich, where you'd get stuck below when you've missed your chance at going up with the ladder

This commit is contained in:
betalars 2023-03-27 19:44:01 +02:00
parent 1b920030f4
commit 18eeea5539
1 changed files with 5 additions and 4 deletions

View File

@ -497,7 +497,8 @@ var risen:bool = false
var start_position:Vector3 = position var start_position:Vector3 = position
func raise(_discard): func raise(_discard):
if not risen: if risen:
position = start_position
var raiser = create_tween() var raiser = create_tween()
raiser.tween_property(self, \"position\", position + Vector3(0,1.1,0), 1) raiser.tween_property(self, \"position\", position + Vector3(0,1.1,0), 1)
risen = true risen = true