
- Fixed some spell animations - Fixed crash with healing spells - Added scene transitions - Added boolean for web build to disable window type selection - Fixed some random errors
13 lines
444 B
GDScript
13 lines
444 B
GDScript
class_name SceneTransitioner extends AnimationPlayer
|
|
|
|
@export var transitionsAway: Array[String]
|
|
@export var transitionsInto: Array[String]
|
|
|
|
func hideScreen():
|
|
play(transitionsAway[randi_range(0, transitionsAway.size() - 1)])
|
|
await get_tree().create_timer(current_animation_length).timeout
|
|
|
|
func showScreen():
|
|
play(transitionsInto[randi_range(0, transitionsInto.size() - 1)])
|
|
await get_tree().create_timer(current_animation_length).timeout
|