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 bc57b483e2
commit d891584439
1 changed files with 5 additions and 4 deletions

View File

@ -497,10 +497,11 @@ 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:
var raiser = create_tween() position = start_position
raiser.tween_property(self, \"position\", position + Vector3(0,1.1,0), 1) var raiser = create_tween()
risen = true raiser.tween_property(self, \"position\", position + Vector3(0,1.1,0), 1)
risen = true
func reset(_discard): func reset(_discard):
risen = false risen = false