added functionality for various game modes
This commit is contained in:
@@ -4,6 +4,7 @@ extends Area3D
|
||||
|
||||
var player
|
||||
var player_on_ladder = false
|
||||
@onready var level_control = get_tree().current_scene
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
@@ -32,7 +33,6 @@ func _on_body_exited(body):
|
||||
body.is_climbing = false
|
||||
player_on_ladder = false
|
||||
body.velocity.y = .1
|
||||
body.gravity = body.default_gravity
|
||||
|
||||
func hold_player():
|
||||
var direction_to_ladder = player.global_position.direction_to(self.global_position)
|
||||
|
||||
Reference in New Issue
Block a user