freeftf/scripts/ability_select.gd

12 lines
306 B
GDScript3
Raw Permalink Normal View History

2024-09-01 21:35:29 +02:00
extends VBoxContainer
func _on_opt_0_pressed():
get_parent().get_parent().speed += 1
get_parent().get_parent().mouse_locked = true
get_parent().queue_free()
func _on_opt_1_pressed():
get_parent().get_parent().jump_debuff -= 2
get_parent().get_parent().mouse_locked = true
get_parent().queue_free()