Closed LiquidatorCoder closed 4 years ago
It seems that you are using BaseGame
and overriding the update
method. When using BaseGame, that is not advisable, as the BaseGame is responsible to handle your components lifecycle, which includes calling the update from the components, and a bunch of additional stuff.
So, long story short, you need to make sure that your update method calls the super.update.
Underlying misconception was addressed by #437
I am new to Flame and I was following the official documentation to make an endless game in it.
I hope the game is clear from this image.
Now I have two dart files. First is box.dart which is the main player component.
As you can see I have added a spin method which I want to use when I will drag the player.
Now in game.dart file -
I have added a calling statement to box.spin in onHorizontalDragStart method. But whenever I run the game the rotate effect is not working. Am I missing something?