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
149 questions
21
votes
2 answers

Haxe / OpenFL / Flixel

I've been looking through the sites of Haxe / OpenFL / Flixel but am struggling to understand what each one is for. As I understand it: Haxe is a language that can be deployed to multiple platforms. OpenFL is something to do with Flash. Flixel is a…
panthro
  • 19,109
  • 50
  • 152
  • 271
7
votes
1 answer

How to exit Haxe/OpenFL program?

I am making a game using Haxe, OpenFL (Formerly NME) and HaxeFlixel. However, problem is, I can't seem to find a good way to make a Flixel button that will shutdown the game when pressed. I was planning to make a "quit" button on the main menu. Is…
Mandemon
  • 274
  • 2
  • 18
6
votes
3 answers

Correct way to instantiate a FlxPoint

(I'm using the dev branch of HaxeFlixel) To create a new FlxPoint variable I can do one of three things... var pt:FlxPoint = new FlxPoint(); var pt:FlxPoint = FlxPoint.weak(); var pt:FlxPoint = FlxPoint.get(); From reading the method comments, I've…
Piku
  • 3,286
  • 6
  • 32
  • 38
5
votes
1 answer

Arrow operator usage in Haxe and other variable type related questions

I am following a tutorial for HaxeFlixel which uses the Haxe language. Now I do not have any experience in Haxe, but I decided to brave the tutorial since I do have experience in Java and Haxe as a language seems weirdly similar to Java. So far, it…
darkhorse
  • 5,888
  • 11
  • 39
  • 105
5
votes
1 answer

Serializing works but unserializing crashes

I'm trying to set up a save function in my HaxeFlixel game. Some background: The object in question is an instance of Player, which extends FlxSprite. Save data is stored in an instance of a custom class I made for it. That instance is stored in a…
Viko Riféo
  • 119
  • 7
5
votes
4 answers

HaxeFlixel Trace

Day one HaxeFlixel Coder. Stupid error, but Google isn't helping me. How do I trace to FlashDevelop output using Haxe, NME and Flixel. It works when executing using C++, but nothing for Flash! I've tried trace("hello"); Lib.trace("hello"); //With…
Daniel Messias
  • 2,383
  • 2
  • 16
  • 21
4
votes
1 answer

HaxeFlixel: Overlaying Graphics into Single Sprite

I have code to generate a player avatar spritesheet by pulling each individual body/clothing item and overlaying it in a particular order. Essentially, I'm trying to combine the clothing sheets into a single body by laying them over each other. But…
Fuselight
  • 534
  • 4
  • 16
4
votes
1 answer

How to change z-index of the FlxSprite in FlxGroup?

I have a heterogeneous FlxGroup contains: 10 FlxSprite and 4 FlxText. I add all objects with add(obj) function and their z-indexes determined by add function. I want to change z-index values of objects in my FlxGroup dynamically while program is…
Enes F.
  • 309
  • 3
  • 13
3
votes
1 answer

HaxeFlixel Unexpected & (amp) Character

I'm trying to get HaxeFlixel working. It works with lime test neko but doesn't work on lime test neko -debug. It says: /usr/share/haxelib/flixel/4,6,0/flixel/effects/particles/FlxEmitter.hx:28: characters 34-35 : Unexpected & And here's how the…
hamdirizal
  • 211
  • 1
  • 7
3
votes
1 answer

Is there a way to apply an alpha mask to a FlxCamera?

I'm trying to implement this camera but one of the obstacles I'm facing right now, is the merging of two cameras (what he describes here). At first I tried to make a non-rectangular camera, but I don't think it's possible without changing a lot of…
Epono
  • 98
  • 1
  • 1
  • 8
3
votes
1 answer

Haxe - Why can I not access a child's attribute without getting an error that the parent does not have the given attribute?

I've recently been getting into Haxe and just started to use HaxeFlixel to load a Tiled .TMX file. I am creating a TiledMap object and passing it the TMX file path, then I want to iterate over the layers in that object to add them to the game scene.…
Jay Turner
  • 33
  • 5
3
votes
1 answer

FlxG.collide not working when x>648

So I was trying to create a platformer game using HaxeFlixel, but I ran into a problem: after a FlxSprite object's x value passes 648, FlxG.collide doesn't seem to work at all. Here is a gif of the problem. As you can see, it works fine when the…
MightyAlex200
  • 71
  • 1
  • 5
3
votes
2 answers

Haxe how to speed up compilation (choosing fastest target)

I'm currently using Haxe, specifically haxeflixel for development. One thing that really bugs me is the build/compile time. I'm not even compiling to c++ target but decided to compile to neko vm as I thought it maybe faster. However; the compile…
efel
  • 884
  • 1
  • 11
  • 24
3
votes
1 answer

MUnit and MCover "Invalid package...should be " error

Trying to compile the autogenerated example test (made with the standard haxelib run munit gen, then running with haxelib run munit t with or without -coverage) for a HaxeFlixel game (flash target), using MUnit 2.1.2 with Haxe 3.2.1 on Windows 7. I…
Kev
  • 14,115
  • 14
  • 75
  • 106
3
votes
3 answers

Can I use HaxeUI with HaxeFlixel?

I tried to use both HaxeUI and HaxeFlixel, but what I obtain is HaxeUI's interface over a white background, covering everything underneath. Moreover, even if it was possible to somewhat make HaxeUI and HaxeFlixel work together, it's not clear how to…
x2f
  • 165
  • 9
1
2 3
9 10