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.
TouhouGD/script/level/level_active_plat_lift.gd

19 lines
487 B
GDScript

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:
print("[on_set_open]", is_open_set)
func on_process_open(rate: float) -> void:
print("LevelActivePlatLift on_process_open", rate)
var offset_y = rate * 2.56
position.y = original_position_y + offset_y
print(original_position_y)
for character in character_list:
character.emit_pos_changed()