You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
377 B
GDScript

8 months ago
extends LevelActive
class_name LevelActivePlatLift
var original_position_y: float
func on_init() -> void:
original_position_y = position.y
func on_set_open(is_open_set: bool) -> void:
8 months ago
pass
8 months ago
func on_process_open(rate: float) -> void:
var offset_y = rate * 2.56
position.y = original_position_y + offset_y
for character in character_list:
character.emit_pos_changed()