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

Lines in sprites flicker when moving

We are creating a game in flutter flame and we notice some strage jitter whenever we move our camera. We have a position component that moves by changing the position and the camera follows We have very simple movement for now where dt is delta time…
anonymous-dev
  • 2,897
  • 9
  • 48
  • 112
0
votes
1 answer

How to align sprites sequentially in a line and extract them as a png format with TexturePacker?

I want to align 15 picture from this pack in one line using TexturePacker and create a png file as sprite sheet to create an animation using FireAtlas afterward. I tried a lot but couldn't create such output. I am using Flame library in Flutter and…
Davoud
  • 2,576
  • 1
  • 32
  • 53
0
votes
1 answer

Error compiling Flutter Flame Game on Android Studio

Hi I tried to implement Flame Game using the flutter Flame package, however, after compiling properly once, now it does not compile at all, and is showing the error, listed below: I am running MacOS Moneterey Androud Studio: Arctic Fox…
Aadn
  • 93
  • 1
  • 5
0
votes
1 answer

Flame Audio or Audio Player does not stop the sound

Working with Flame and Flame Audio, I cannot resolve an issue. The stop function on AudioPlayer returned by FlameAudio, does not stop playing the loop. I am not sure whether this is a problem in my code, a problem in AudioPlayer, or a problem of…
nobody
  • 64
  • 5
  • 15
0
votes
1 answer

Put generated Image object into Flame.Images asset cache

What is the most effective way to put a generated image into the Flame.Images asset cache? I can get the image from this method, but I don't know how to put the resulting Image object into the cache. Future decodeImageFromPixels( …
0
votes
1 answer

Issue with screen resize using Flame Engine

I am trying to embed a small game using Flame Engine directly in my flutter website. I have managed to created a container containing the GameWidget: class gameContainer extends StatelessWidget { const gameContainer({Key? key, required this.width})…
K4l3v
  • 3
  • 2
0
votes
1 answer

function will not set variable back to false in the Bonfire game engine

I am trying to create a way to pick up objects on the map when a senor using is triggered the Bonfire game engine and make the items be put into my inventory through a function that I wrote that uses the games update feature to see if the object is…
Cameron Johnson
  • 143
  • 1
  • 10
0
votes
1 answer

Problem with onTapDown in flame releasecandidate.15

long story short. I'm using flame engine inside expanded widget. Right now I'm loading six backgrounds as well as my SpriteComponent class inside Game extending FlameGame with HasTappableComponents. Now I want to add some interaction to this…
Newman
  • 29
  • 4
0
votes
1 answer

Can I use a Widget as a actual component in Flutter Flame

Can Flutter Flame render Widget inside game world like other components? (not overlay widget). (I want to apply forge2d physic to widget and I'm trying to do it with Flame.)
dante
  • 984
  • 3
  • 10
  • 24
0
votes
1 answer

Can we build Carrom Board game in flutter?

can we build a carrom pool game clone in flutter? i know about the flutter flame but i can't find any tutorial where any one build some thing like that
Radiant Developers
  • 273
  • 3
  • 5
  • 19
0
votes
1 answer

Can a Flame game object such as PositionComponent be Collidable and Draggable

Successfully implemented a Draggable component. When adding the Hitbox and Collidable mixins to the class extended by PositionComponent the drag functionality stops working. Is it possible to have a draggable component that is also…
crayden
  • 2,130
  • 6
  • 36
  • 65
0
votes
1 answer

Detect collision with bottom of screen in Flame Engine?

Following the example here, is it possible to detect collisions with a specific side of the screen for example the bottom of the screen? Flutter version: 2.2.3 Flame version: 1.0.0-releasecandidate.13 onCollision method of MyCollidable…
crayden
  • 2,130
  • 6
  • 36
  • 65
0
votes
1 answer

How do I render a parallax image using the flame game engine with flutter

I am pretty new to the flame game engine built on top of flutter but I am wanting to render a parallax image for my background but when I try to render it in my main game class it won't show up? class BackGround extends AnimationComponent { Rect…
Cameron Johnson
  • 143
  • 1
  • 10
0
votes
1 answer

Flutter Flame audio: different volume of sound effects on different devices

I use Flame Audio to play sound effects in the game. I am faced with the problem that different effects sound at different volume relative to each other on different Android devices. Although on some devices and on the emulator, everything is fine.…
martyGale
  • 61
  • 1
  • 4
0
votes
1 answer

Center an incrementing number using the "setByPostion" component in Flutter

I am developing a new game and ran into an issue where when my score increases to more than 10 or by another decimal it will not center properly due to only the first decimal in the number being in the center of the screen. import…
Cameron Johnson
  • 143
  • 1
  • 10