Better FX
This commit is contained in:
@@ -110,6 +110,7 @@ func _on_track_lilypad_in_center(lilypad: Lilypad, track: LilypadTrack) -> void:
|
||||
track.is_cleared = true
|
||||
track.is_enabled = false
|
||||
frog.success()
|
||||
await lilypad.right()
|
||||
await audio_player.play_gp(lilypad.stimulus)
|
||||
current_word_progression += 1
|
||||
|
||||
|
||||
@@ -44,11 +44,15 @@ func highlight() -> void:
|
||||
|
||||
|
||||
func right() -> void:
|
||||
var previous_settings: LabelSettings = label.label_settings
|
||||
var previous_background_color: Color = text_box_sprite_2d.self_modulate
|
||||
label.label_settings = label.label_settings.duplicate()
|
||||
label.label_settings.font_color = Minigame.LABEL_COLOR_NEUTRAL
|
||||
text_box_sprite_2d.self_modulate = Minigame.LABEL_COLOR_WIN
|
||||
right_fx.play()
|
||||
await right_fx.finished
|
||||
label.label_settings = previous_settings
|
||||
text_box_sprite_2d.self_modulate = previous_background_color
|
||||
|
||||
|
||||
func wrong() -> void:
|
||||
|
||||
Reference in New Issue
Block a user