How to change the fill of an object in a JavaFX Animation?
问题 I'm developing a simple Java videogame. I've decided to shape the characters of that videogame by using the Rectangle class of JavaFX. When a character dies, I need to update the texture sequentially, until the death of the characters. I need to realize an animation for this reason. I've tried to use the FillTransition , but I can't change the filling Image of the rectangle but only the color...what kind of animation class should I use? The death of a character is represented by 4 different