Questions tagged [flame]

Flame is a modular game engine built with Flutter.

Flame is a 2D game engine built on top of the Flutter framework, composed of a ever expanding set of modular solutions that developers can pick and choose to make from simple to very complex games on Android, iOS and now web/desktop (beta).

281 questions
0
votes
1 answer

Why is onTap method not working in flame?

I am trying to recreate the game flappy birds using flame and flutter but I encountered a problem and I was wondering if anyone would be able to help me. The problem is that the onTap method is not working. This is my code: const COLOR = const…
dosytres
  • 2,096
  • 3
  • 10
  • 21
0
votes
1 answer

How to stop sprite animation at start in Flutter Flame game engine

I want to render this card and the first time it's loaded, the animation start once. What I want is the default there is no animation happen. Does anyone know how to make this happen? class Card extends AnimationComponent { Card(width,…
Msfrn
  • 115
  • 1
  • 1
  • 5
0
votes
1 answer

Flutter update is giving me this error: The method '*' was called on null

I have a flutter app using the flame library. I'm trying to make an object move in a flutter game. When I run the update function, I get the following error: The method '*' was called on null. Receiver: null Tried calling: *(0.0) Seems like…
Jessica
  • 9,379
  • 14
  • 65
  • 136
0
votes
2 answers

How to make/draw dots using flame in flutter?

I want to make series of dots in my app using flame. So far I know about Custom paint and all but what I am using here is SpriteComponent and want to use it only to make draw dots This is what I tried: *****main******* var game; const ComponentSize…
Prianca
  • 1,035
  • 5
  • 16
  • 30
-1
votes
1 answer

Flame on various devices and their resolutions

Flutter/android supports various resolutions (hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi) for resources used in apps. Is there something similar available for Flame resources like SpriteButtonComponent, HudButtonComponent? Is it needed? How does Flame…
nobody
  • 64
  • 5
  • 15
-1
votes
1 answer

Flame 0.29.4 cannot run with sound null safety

When trying to run my Flame application I get the following error: Error: Cannot run with sound null safety, because the following dependencies don't support null safety: package:flame package:ordered_set package:box2d_flame I have the following…
Hamou Ouyaba
  • 913
  • 1
  • 4
  • 17
-1
votes
1 answer

Flutter Flame game - animation speed (update duration)

for those who are familiar with using Flame in Flutter for game development, I'm wondering if you can just advise me whether I'm on the right track, or not - because I'm not sure if what I'm seeing in my testing is what I expected. I started out…
Craig
  • 1,123
  • 3
  • 13
-1
votes
1 answer

how to create a scrollView in Flutter Flame

I need a listView for my Game. Is there a simple way to create one? There are no tutorials for such a feature and I couldn't find anything in the documentation.
-1
votes
2 answers

Flutter / Flame - How to work with PanDetector and other GestureDetector for Components at same time?

My game uses PanDetector to move the player. class MyGame extends BaseGame with PanDetector, HasTapableComponents { @override void onPanUpdate(DragUpdateDetails details) { // move the player player.move(details.delta.dx,…
djalmafreestyler
  • 1,703
  • 5
  • 21
  • 42
-2
votes
2 answers

Issue Importing Tiled Map into Flutter Flame Tiled: Unexpected Lines Appearing

I am currently following this tutorial: https://www.youtube.com/watch?v=D1ZQFlH4g0E I have an issue when I import my map that I created on Tiled with Flutter Flame Tiled; I get lines appearing in certain places as you can see in the screenshot, I…
Milaethe
  • 43
  • 5
-2
votes
1 answer

Flutter/Flame Why my code is not working normally and getting buggy

I followed a youtube tutorial about flutter flame game design which was published recently (Flame v1.2.0) so all the versions should be up to date. But when i write the code its not working like it should. Here is a youtube link of video so you can…
1 2 3
18
19