Is it possible to change object parameters via AnimationPlayer in different scenes

Godot Version

4.2 Mono

Question

There is a DamageIndicator scene, serves to display the damage received. There is a scene Bat, in it there is DamageIndicator. Bat has a ShaderMaterial to display the damage received. Shader has two states: on - sprite is white and off - sprite is normal. DamageIndicator has AnimationPlayer which is controlled from DamageIndicator script and I want to have a shader automatically connected to the Bat sprite through DamageIndicator script when Bat is created and also controlled from DamageIndicator script. Is this possible?
Godot_v4.2.1-stable_mono_win64_KzAPVpvEEQ
Godot_v4.2.1-stable_mono_win64_qWJY0IJqtb

Call Method Track in AnimatinPlayer

Thank you very much, that showed me the solution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.