Reputation: 2667
I'm implementing a parallax background for my 2d side-scrolling game with Flame, similar to the example.
The ParallaxComponent
api seems to support only placing layers using Alignment
which puts them to the top/center/bottom of the screen.
I wonder if there's a way to position layers more precisely and change their size. Thanks!
Upvotes: 0
Views: 60
Reputation: 11552
The API of ParallaxComponent
doesn't support this yet, but what you could do is using multiple ParallaxComponent
s on top of each other since they are PositionComponent
s that you can place and size as you like.
Upvotes: 1