Questions tagged [haxeflixel]

HaxeFlixel is an open source game engine that is completely free for personal or commercial use. Written entirely in Haxe, HaxeFlixel can target many platforms (web, desktop, and mobile) and is easy to learn, extend and customize.

HaxeFlixel is an open source, 2D game engine that is completely free for personal or commercial use. Written entirely in Haxe and built on top of , HaxeFlixel can target many platforms including , /, native Windows, , and desktop, and native , and mobile devices. HaxeFlixel provides some useful base classes for creating 2D games and other content and is easy to learn, extend and customize. It was originally ported from the ActionScript Flash library Flixel but has since moved in its own direction to be better at targeting non-Flash platforms.

Features:

  • Animations
  • Collisions
  • Movement
  • Tilemaps
  • Particle effects
  • Visual effects such as flickering, screen-shaking, blend-modes, alpha adjustments, etc.
  • Simple physics (Box2D can also be used with Flixel)
  • Keyboard and mouse access
  • Audio controls for volume and muting
  • Pausing gameplay
  • Site-locking
  • Pre-loading
209 questions
2
votes
1 answer

HaxeFlixel - Error constructing FlxUI9SliceSprite

I am creating a game in HaxeFlixel, using flixel-ui to deal with the user interface. I have run into a problem using the FlxUI9SliceSprite. I have the following line of code to construct it: _bg = new FlxUI9SliceSprite(0, 0,…
sebshady
  • 141
  • 7
2
votes
2 answers

How to use HaxeFlixel together with openfl-bitfive

I would like to build a HaxeFlixel project against a HTML5 target, using openfl-bitfive In the Readme for openfl-bitfive: https://github.com/YellowAfterlife/openfl-bitfive#usage, it says: "Navigate to application.xml of your project and add the…
bojangle
  • 888
  • 1
  • 8
  • 14
2
votes
1 answer

Rotating a sprite in HaxeFlixel

I'm having trouble with something very simple in HaxeFlixel, but I can't find one reference to it anywhere online. All I need to do is rotate a FlxSprite. There are multiple references online to a .rotation value that can be set, but my sprite does…
djcmm476
  • 1,723
  • 6
  • 24
  • 46
2
votes
3 answers

Haxe projects only shows blank Flash Player

I'm getting started using Haxe. After going through all of the setting up, I should be all ready to go, but when I run any project it opens a Flash Player with a blank screen. No preloader, not text, just a screen of whatever color is specified in…
adamSrgnt
  • 50
  • 1
  • 7
1
vote
0 answers

Haxe convert fnt to bfnt?

can you guide me to convert fnt font to bfnt? i just want to create 1 bfnt font to make game mod. Hope everybody help please. enter image description here I tried installing haxe and creating projects in flixel but don't know how to convert bfnt, i…
1
vote
1 answer

Creating a second game window in HaxeFlixel

I wanted to add a second window and I even succeeded, but it is empty and I don’t know how to add anything there, I also couldn’t find a normal description of what is responsible for what. I can’t understand what exactly the parameters in…
Pyr0Guy
  • 21
  • 3
1
vote
0 answers

How do I put a camera on a separate window without lag?

The current way I'm doing it works, but is really heavy on performance, and I'd like to reduce the lag as much as possible. Basically I'm copying the pixels of said FlxCamera onto an FlxSprite, and then I'm rendering that FlxSprite's pixels to a…
1
vote
0 answers

FlxButtonPlus not responding to anything inside of game's pause menu

I am using the haxeflixel game framework to create a game and I was making a pause menu. I tried using the default FlxButton but the collision with the mouse never lined up properly. So I tried using FlxButtonPlus because it had some cool hooks but…
1
vote
0 answers

How to change FlxG width and height, ResizeGame doesn't work

how do i change FlxG width and height in runtime as resizeGame doesn't do anything i have the project by default set to 1600 x 900 and i have a state for settings where i can change the resolution and have managed to make it so that i can change…
1
vote
2 answers

How to directly save a BitmapData as a PNG file without any dialog

First time asking a question here so sorry if I do something wrong. I’m using Haxeflixel (compiling to c++) and I’ve been trying to figure out how I can encode and save a BitmapData as a PNG to a file without any kind of dialog like the…
1
vote
0 answers

Ogmo Tilemap not showing in the game

So I am doing the haxe flixel TurnBasedRPG tutorial I am pretty much a noob so I wont be surprised if this is just a stupid mistake I did. But when I try to put my ogmo tilemap into the game, it doesnt show Here is my Playstate.hx…
1
vote
1 answer

How can you position a HaxeFlixel canvas in the centre of a chrome window?

At the moment, I'm learning HaxeFlixel, and I can centre the text in the canvas, but i can't position the canvas in the centre of chrome the chrome window. Is there a way to do it and Main.hx? PlayState.hx : package; import flixel.FlxG; import…
TheSager
  • 15
  • 5
1
vote
1 answer

Make text stick to top of screen, even when moving camera

I am learning Haxe Flixel. I have a text that I want to stick to the top of the screen. I couldn't find anything in the API. How can I make a textObject stick even when camera centered around player is moving? Similarly. How can I set up lower…
1
vote
0 answers

Having trouble getting a ray cast to collide from a player to a wall in HaxeFlixel

I am trying to cast a ray from the center of a player to the point in front of them. This is to implement "mining" of collideable tiles. Once I know that a ray collided with a tile, then I can destroy it and drop an item below it. I added a "debug"…
HenryFBP
  • 13
  • 1
  • 3
1
vote
1 answer

Making a `FlxSubState` that can be re-used without it crashing on the second `open`?

Typically, when I want to open a FlxSubState that I have defined in my code, I will use: openSubState(new MySubState()); I have all of my create/add logic inside MySubState.create() Which works fine, except, if there is a lot of stuff on that…
SeiferTim
  • 438
  • 4
  • 18