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
0
votes
1 answer

Deploy a HaxeFlixel game to a windows .exe file

I made a mini game with HaxeFlixel and OpenFL, It's worked great and now I want to put it on Game Jolt to check can it work or not, but to do that I need to change my whole project into executable, and I don't really know where I should start... I…
0
votes
1 answer

Move through a sequence of variables in Haxe

I honestly don't know how this function is called(and I'm sure it is a simple thing), neither how I can effectively search for it(I didn't find it when I googled it). I have a set of string variables in Haxe called public static var…
Javier Bullrich
  • 389
  • 1
  • 5
  • 22
0
votes
1 answer

Null Object Reference when making a FlxPath

I'm trying to tweak this HaxeFlixel tutorial in order to make it more interesting and learn how to make games in the process. One of the first things I'm doing is restricting movement to tiles. However, I've come to a wall – none of what I've tried…
Malltog
  • 1
  • 3
0
votes
1 answer

Repeating (menu) background in HaxeFlixel?

I've tried to load a 16x16 image as a FlxSprite, but I don't know how to make it repeat to span across the whole Window. How would I do that? Where I load the sprite: class MainMenuState extends FlxState { var _menuBg:FlxSprite; override public…
jona
  • 399
  • 4
  • 14
0
votes
2 answers

Using multiple textures in one image file

In my game I'm trying to use a sprite sheet with all my GUI textures in one image file. But I have no idea how to create a sprite using just part of an image resource defined by a rectangle. OBS: I don't want to use Texture Packer, I have an…
MouseCaneta
  • 135
  • 1
  • 8
0
votes
1 answer

Array index calculation out of bounds

Here's some Haxe, written as part of a game in HaxeFlixel. var fx:Float = 236/43; //Some float var ix:Int = cast(fx); //Cast to an int someArray[v]; //Access an array The array access causes a violation. I can't think of a reason why this…
mtrc
  • 1,317
  • 3
  • 16
  • 39
0
votes
2 answers

Get / Set on a Dynamic Object in Haxe using Reflect and String id

I have this actionScript3 Code I'm porting to haxe. public static const DATA_COMPLETE_LEVELS : String = "save_game_data_complete_levels"; private var _completedLevelKeys:Vector.; public function get completedLevelKeys():Vector.
yannicuLar
  • 3,083
  • 3
  • 32
  • 50
0
votes
1 answer

Error setting scrollFactor on FlxSprite after update to HaxeFlixel 3.3.0

I just finished updating my HaxeFlixel install to 3.3.0 and after ironing out all the other upgrade changes I am still getting one error I can't find any explanation for. I am setting the scrollFactor property on the FlxSprites that make up my…
KLowe
  • 463
  • 1
  • 5
  • 9
-1
votes
1 answer

VSCode - how to use VSCode to debug in Flash and Android?

I am a "real newbie" and want to learn about programming. I got a trouble with the debug option inside VSCode. My question is: how to use "VSCode" to "debug" in "Flash and Android"? i have already tried to debug. But my debug option only has HTML5…
Arif P
  • 1
  • 2
-1
votes
1 answer

Health Bar/Programming Trick 2 Parter

I have a top down zombie shooter thing going on and I have an odd way from an example to display a health bar. The code goes like so: private function createLives():Void { BaseLifeText = new FlxText(4, 28, 220, "Base Health: ", 12); …
xhunterko
  • 49
  • 7
-1
votes
1 answer

Any way to get a HaxeFlixel group to clear out?

There is a too long, didn't read version down below. So I've been making a little game in which the player has to click on a grid of bricks that matches the color of the needed brick in the upper right hand corner of the screen. After they click on…
xhunterko
  • 49
  • 7
-2
votes
1 answer

What is the X and Y for the center of the screen? (haxeflixel)

Im trying to get flxSprite to be in the center, but i dont wanna use the preset haxeflixel commands, since i might move it later, so can someone please help?
-2
votes
1 answer

lime test windows error command prompt not installed?

Everytime i load command prompt this always happens: Me: cd Documents/Funkin-master Me: Lime test windows Error: You must have a "project.xml" file or specify another valid project file when using the 'test' command. There is a Project.xml and I…
-3
votes
1 answer

problem with friday night funkin compilation

I am trying to use the compiled page of git hub but after installing and doing everything it asks for, when using the command lime test windows I get the following error. C:/HaxeToolkit/haxe/lib/polymod/git/polymod/format/XMLMerge.hx:189:…
1 2 3
13
14