I create a spritesheet with different animations and its relative xml file. From the xml I get via code all the necessary data (animation name, frame size, sequence of images for each animation, etc.) and I display the animations found in the sheet in a TComboBox.
I would like to allow the user to choose and view a certain animation or possibly all in succession.
I use:
Player := TSprite.CreateFrameSize(MainImage,
FrameCount,
Columns,
HorzSizeFrame,
VertSizeFrame,
True,
False);
I see that perhaps it would be possible to use SwitchToAnimation
but from my code of a previous version of CGE I was using Player.CurrentAnimation.Play
which, however, currently seems incorrect.
What could be the right way to view animations by defining the starting and ending frame?