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
0 answers

HaxeFlixel how to fire touch event to fire when touching sprite

I have a sprite on the screen that I want to fire a event when touched. I managed it with the mouse event but can't get it work with touch input. //This works for mouse. eg. import…
Ferrari177
  • 31
  • 1
0
votes
1 answer

Deploying HaxeFlixel game to Android device

I'm making a game for android with HaxeFlixel. I'm using VirtualBox to run Windows 7 on my Mac. After developing and building a game in FlashDevelop, I've navigated to the project folder in the command prompt and run this command: lime test…
Ethan Fischer
  • 1,229
  • 2
  • 18
  • 30
0
votes
1 answer

Unknown Identifier while using function?

In player.hx: public function new(X, Y, _upKey:String, _downKey:String){ super(X, Y); makeGraphic(20, 20, FlxColor.RED); immovable = true; } In PlayState.hx: override public function create():Void { super.create(); add(new Enemy(300,…
Pop Car
  • 363
  • 5
  • 15
0
votes
1 answer

In HaxeFlixel, What is Box object and how to use it?

I'm trying to use FlxUICheckBox. In the official documentation, the constructor looks like this: new(X:Float = 0, Y:Float = 0, ?Box:Dynamic, ..) What is the Box object? How should I send a Box object as a parameter to this constructor?
Enes F.
  • 406
  • 6
  • 17
0
votes
0 answers

HaxeFlixel - Error: invalid operation (%), probably mistake with loadGraphic

I searched the HaxeFlixel forums, google, here and managed to fixed some other problems while trying to debug this myself, but no luck with the problem itself. As best I can tell it seems like I did something silly when using loadGraphic() maybe? I…
Ajacmac
  • 49
  • 1
  • 9
0
votes
1 answer

Haxeflixel: following tut, only getting a black screen

I'm following the tutorial here... http://x01010111.com/haxeflixel.php#w3 I got to the part where he says "Awesome, but" and tried compiling, only to have nothing displayed. I tried comparing my code to his a bunch of times, going farther into the…
Ajacmac
  • 49
  • 1
  • 9
0
votes
1 answer

HaxeFlixel: FlxSprite animation fails at runtime with Neko target

I have everything up to date and I'm using HaxeFlixel to experiment some assets import and automation. What I'm trying to accomplish is to get frames from a sprite sheet and automate the add.animation process. For example, I need the first row of…
filipp8
  • 33
  • 5
0
votes
1 answer

Is it possible to covert swf to apk and ipa file using AIR SDK?

I use FlashDevelop to make game using HaxeFlixel which handles multi-resolution and touch. I've downloaded the merged SDK of Flex and AIR SDK but have no clue to convert. I can easily compile to apk only if I download the Android SDK, NDK which…
Dlean Jeans
  • 966
  • 1
  • 8
  • 23
0
votes
2 answers

How to create a delay based on an animation in HaxeFlixel?

I'm developing my first game and I have a player class (FlxSprite) that has a death animation. I want to remove the player from the stage as soon as the animation ends, but if I use: player.animation.play('death'); remove(player); The animation…
rotpar
  • 11
0
votes
0 answers

HaxeFlixel, icon turns into a Black square

I'm trying to change my game's icon for Windows, using SVG format. I use this command line in the project.xml, but the icon is still black:
0
votes
1 answer

HaxeFlixel, loadGraphic() for a Bitmap

I have problems triying to set a Bitmap in the method loadGraphic() of the SpriteSheet. var bd:BitmapData = Assets.getBitmapData("images/MenuDoorTopV1.0_640x260.png"); var b:Bitmap = new Bitmap(bd); _CompuertaTop = new FlxSprite(-1000,…
0
votes
1 answer

HaxeFlixel - issue with passing FlxTypedGroup into another FlxState

After passing FlxTypedGroup into new FlxState im getting this error message from new state : Invalid field access : length my code : in GameState class after certain action: FlxG.switchState(new EvaluationState(ingredients)); please note that…
Bob T.
  • 261
  • 1
  • 13
0
votes
2 answers

FlxTilemap CSV loading with height of 0

I am trying to load a CSV file into a FlxTilemap like so: map = new FlxTilemap(); map.loadMap(Assets.getText(AssetPaths.map__csv), AssetPaths.tileset__png, 16, 16, 0, 1); add(map); However, when I test it using lime test neko, the map does not…
0
votes
1 answer

HaxeFlixel - FlxSubState unexpected null object reference

Im trying to make simple ingame menu. Im using FlxSubState class. First im trying invoke substate in main game state with openSubState(gameMenu); after pressing Esc. There is code in my substate class, this class inheriting FlxSubState: override…
Bob T.
  • 261
  • 1
  • 13
0
votes
2 answers

How to load simple tmx file in Haxeflixel?

I am trying to use a simple tmx map in my haxeflixel app using the flixel-addons library. My tmx map has a single layer with all the tiles in it. there is nothing special about the map at all. I tried to use the TiledMap demo as reference and…
Rishav Sharan
  • 2,763
  • 8
  • 39
  • 55
1 2 3
13
14