Flame Scrolling Sprite
Flame Scrolling Sprite is a Flame package to make it easy to render sprites that scrolls and repeat itself forever given a velocity.
This can be used to create things like an scrolling background, or even create scenes, bellow you can see one example of this:
This package can be used by using the plain class ScrollingSprite
or the ScrollingSpriteComponent
, they do example the same thing, but the later can be used together with Flame component system.
Bellow you can find all the parameters that the classes receives
When using the ScrollingSpriteComponent
the same paramenters above apply to it, and additionally, you can inform the x
and y
where the area will place placed.
For a live example of this running, please refer to the example folder.