[x] I have verified that there are no existing pull requests that would overlap with this pull request.
[x] I have verified that I am following the guidelines as outlined in this project's contribution policy
[x] I Have verified that this pull request adheres to this project's code of conduct.
[x] I have written a descriptive title for this pull request.
[x] I have provided appropriate test coverage were applicable.
Description
This change adds the following to the AnimatedSprite class
FrameCount property so users can get how many frames are in the animation
SetFrame(int) method to force set a frame while animation is playing
Play(int?) changed to Play(int?, int?) where second parameter allows setting the frame of animation to start playback on. If no value is supplied it will default to 0
Related Issue Ticket Numbers
No related issues. This was a feature request from Tenticles on the MonoGame.Aseprite discord.
Prerequisites
Description
This change adds the following to the
AnimatedSprite
classFrameCount
property so users can get how many frames are in the animationSetFrame(int)
method to force set a frame while animation is playingPlay(int?)
changed toPlay(int?, int?)
where second parameter allows setting the frame of animation to start playback on. If no value is supplied it will default to 0Related Issue Ticket Numbers
No related issues. This was a feature request from Tenticles on the MonoGame.Aseprite discord.