Flame Questions
Ad
How to destroy sprite objects in Flutter Flame?
Does removefromparent destroys object? i mean garbage collects it, i am looking for destroy method but couldn't find. update:
How should you do matrix transformations?
We are rendering a isometric grid with flame where each tile is a component but we found this comment in the source code of the transform2d
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
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
Flutter-Flame: How to calculate the relect of a raycast?
Thank you for your reading. my english is not good, i'll explain this as well as i can. i need to generate the reflection line in canvas, but it
How to detect screen boundaries with Flame in Flutter?
I want to detect when an object goes outside of the screen in flame flutter. i think there is two way to accomplish this either with
Changing world size in flame with parallax
I'm using the version 1 release of flame, and adding a parallax background which works great. // load background layers final
Flutter setState() is not updating a Flame SpriteAnimationWidget
I am currently using a spriteanimationwidget from flame, and i want to have different animations by clicking buttons. to test out if this
dependency_overrides for dependency with path dependency
In flame we have a monorepo with flame and its bridge packages and all of the bridge packages has flame as a path dependency (not when they are
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
Ad
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
Bug on some devices with animation using flutter and flame
Basically, i have a problem in an app i'm creating from a game based on a tutorial i saw, however, my character's animation is buggy on some
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
Sprite not showing up in flutter application using flame
I am following the flame tutorial for flutter
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
Attaching components so they move together
Is it possible with flame components to attach them to other components so that their position is updated when the "parent" component
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
How do you sort the render order of sprites in Flame (Flutter) at runtime?
What's the most concise (and ideally, most efficient) approach to sort the rendering order of sprites in the game scene at runtime, post
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
Detect collision with bottom of screen in Flame Engine?
Following the example
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
Ad
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
How to navigate to widgets outside of a Flutter Flame Engine game widget
Is it possible to navigate out of a flame engine game widget into other flutter widgets? the app below immediately loads the game widget.
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
The argument type 'List<Future<Sprite>>' can't be assigned to the parameter type 'List<Sprite>'
Class mygame extends basegame with hastapablecomponents { spriteanimationcomponent girl = spriteanimationcomponent(); mygame();
How does Flame support Rive animation?
It's mentioned here under
How to move a Vector2 using PositionComponent with Flame/Flutter?
I am trying to move a vector2's x position, the update is being called, the x value is changing but the white square component does not move, what
Flutter Flame SpriteComponent with Tapable does not recognize onTapDown Method
I am creating some ui buttons for a menu in flame. the button itself is able to render just fine apart from changing sprites on the ontapdown
Flame Error: Cannot run with sound null safety
After installing flame and when i run my app in flutter (flutter run). i got a long error regarding null safety: running gradle
Scrolling background in Flutter Flame
I have a list of sprite components in my game that represent three background sprite images which i would like to scroll infinitely. i initialize,
Animation from assets in Flutter
I'm currently working over an app similar to good old tamagotchi with modern twists. right now i prepared some code and didn't need any character
How to detect tap on Flutter Flame v1.0.0-rc6 and later?
What's the equivalent of: tapgesturerecognizer tapper = tapgesturerecognizer(); tapper.ontapdown = game.ontapdown;
Ad
How to detect tap on Flame components?
I am using flutter and flame (0.29.3) to build a simple mobile game. i am trying to detect taps on positioncomponent/spritecomponent. however, i
Flutter and Flame - Unable to move parallax effect to separate class [New to flutter]
I'm trying to develop a little 2d platform game with flutter and flame and i already got stuck with refactoring my code.... i want to put
Adding background in flutter
What should i do to apply my background image in my project? did i miss something? my background image found under lib/assets/background.jpg
uses-sdk:minSdkVersion 16 cannot be smaller than version 23 declared in library [:audioplayers]
I am creating a simple game in flutter, dart and flame, my flame is updated version same goes with the flutter,
Is this Flutter (Dart) code robust re "async" usage or are futher null checks required?
Is the following flutter (using flame package too) code robust in the sense that, is there a risk "prefs" may not be available during
How to have a Rect move constantly in a linear fashion flutter/flame
I have been having trouble trying to implement a method that moves a rect in flutter using the flame game engine. the ultimate goal is to swipe in
How to load network image in Flame?
In flame documentation, image class just load from asset folder. bgsprite = sprite('avatar/avatar-sample.png');
How do I make a child widget expand to fill a parent container inside of a stack when the child has no parameters to alter its layout?
I'm building a card game and using flame to pull the cards from a sprite sheet. the problem is that i set the width and height of the container
flame_tiled and/or tiled package gives error when running on web
Using flame_tiled plugin to load a tiled map. loading a map through the tiledcomponent like so: tiledcomponent =
Flutter/Flame limiting the drag area in a game
I am trying to move my player by dragging, but i don't want my player to go out of the screen. how can i limit it in a decent way?
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
Ad
How to Capture a screenshot and share using flutter
Is it possible to take a screenshot of the screen using flame and flutter?
Persistent Ticker in Flutter
How to get a persistent tick at every frame refresh time. for example in flame game engine update method gets called at around every
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
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
Flutter: Fatal Error: Callback lookup failed! (with audioplayers package)
The following snippet is the button by clicking which, a short beep plays: flatbutton( onpressed: () => { final player =
Flutter - Flame and Internationalization?
What is the recommended i18n method for dart programs without flutter widgets (games using flame package)? i tried the dart intl package
Can flame components (flutter flame) be widgets within a Flutter app?
Can flutter flame (https://flame-engine.org/) be used to create a "flame
How to add a sprite on top of another sprite in Flame Flutter?
The app has a background image with using spritecomponent and i try to add another tile image on top of background image. why the
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
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
Is it possible to use Flame's game widget beside flutter's widgets?
In brief, as flame game is a widget in its own, i want to add that widget inside column widget. the game runs when i add it to runapp(), but when
Ad
How can I replace Flutter widgets with canvas and vice versa?
I'm making a 2d game using flutter flame. the library uses a canvas,
Ad
Blog Categories
Ad