Haxe is a strictly typed, cross-platform, open-source language. Haxe is mostly used for games development. Primarily focussed on mobile devices (iOS, Android, Windows Mobile, webOS) it compiles down to various other languages, including Actionscript 3, Java, C#, C++, PHP, JavaScript, and others.

learn more… | top users | synonyms

0
votes
0answers
32 views

Scene/Level/Map Editor for Haxe games [closed]

Are there any effective scene editors for Haxe game development? I'm creating a point and click game and the Tiled map editor could possibly work but it doesn't seem meant for this type of game. I'm ...
0
votes
0answers
28 views

Improving bouncing logic - Atari breakout clone

I'm creating an Arkanoid clone using Haxe and Openfl. I'm thinking the bouncing algorithms could be improved. But I'm not sure how to handle those. I was hoping you guys could help. private ...
1
vote
2answers
57 views

Reducing draw calls in a y-sorted orthogonal world

This is a hypothetical question, as I haven't yet come across the problem of making too many draw calls, but for my game I am aware that this could become a potential problem. The style of my game is ...
1
vote
1answer
52 views

How to create UI for 2D games? [closed]

I'm working on a game using Haxe + Flambe but I'm having a hard time making the UI part of it (main screen, level selection, etc). And I began to think... is there another way? I would love to have ...
0
votes
0answers
95 views

From Flash to Haxe - rendering a complex 2D scene (aka “My Graphics Hell”)

(note - This is not a technical question as such, more a query on design and structure) I'm working right now to remake and finish an old Flash game of mine in Haxe with a new engine (Luxe). I've ...
0
votes
1answer
28 views

Pathfinding onComplete event?

In HaxeFlixel 4 all FlxObjects have a path property which must be a FlxPath instance class FlxObject extends FlxBasic { ... /** * The path this object follows. */ public var ...
3
votes
5answers
634 views

Want to play 1 of 3 tracks depending on current level

I want to play a gameplay music track depending on what the current level is. E.g. 1 - Play track 1 2 - Play track 1 3 - Play track 2 4 - Play track 2 5 - Play track 3 repeat... 6 - Play track ...
2
votes
1answer
134 views

Implementing a SceneManager using OpenFL

I'm trying to implement a basic SceneManager using OpenFL and Haxe. I don't have a lot of experience using OpenFL and Haxe so I have a few problems. Here is how I designed the SceneManager class: ...
2
votes
0answers
19 views

HaxeFlixel icon is whiteout

When I build for Android or Windows, the icon is always whiteout. I've tried SVG, PNG and none of those works. <icon path="assets/images/default-icon.svg" /> or <icon path="assets/...
0
votes
1answer
69 views

Controlling the movement of player by sprite using Mouse

I want to move the player by pressing down on the mouse and moving around by dragging. The player won't move to the position of the mouse. Instead it should be relative to the players current position....
0
votes
3answers
320 views

Error in Finding Nearest Hexagonal Tile

Using Openfl for a game using hexagonal tiles Working out the problem of walkability in a game, and I've run into an issue with my Hexagonal tiles. I think it is an odd rounding error of sorts. When ...
3
votes
1answer
127 views

How to achieve smooth sprite movement with a scaled up canvas?

I'm developing a simple 2d platformer using haxe & openfl (currently targeting flash). To achieve the old school pixelation effect I draw 16x16 sprites over a 4x scaled up canvas. With this ...
1
vote
1answer
103 views

How to export HAXE code to other languages?

I'm using Haxe on the HAXE IDE, HIDE. I can simply create code for any language, but I don't know how to export it. It didn't have any export options, and no tutorials explain this. How do I export it?...
1
vote
2answers
378 views

How to make a function in Haxe that reads content from text file and does something with each line?

How can I make a function in Haxe that reads a line from a text file, prints it/saves it to a variable, and then goes to the next line? My objective is to make the dialogues on a text file, having ...
0
votes
3answers
371 views

In HaxeFlixel, how do I avoid hard-coding dialogue?

I'm planning to develop a visual novel in Haxe Flixel and wanted to know if there is a easier way to add dialogue than to hardcode them in every square. I don't know if I can import a txt file with ...
1
vote
0answers
121 views

HaxeFlixel, Font gets fuzzy android upscale

I made a simple game for android with a small native resolution (320x480). When text gets upscaled it loses its sharpness. Tried having anti aliasing on and off and both results were fuzzy. The size ...
0
votes
0answers
55 views

Tetris-like wall-kicking not working [duplicate]

So I'm making a falling-block puzzle game. It's not a Tetris clone, but the block clusters move in a similar fashion. I want to make it so that if you rotate against a wall, or against another piece,...
2
votes
1answer
301 views

My FlxGroup does not change it's visibility status

So, I found I needed a different type of button for my game, which I am making using Haxe, OpenFL and HaxeFlixel. After sometime fliding with Haxe, I got following button done, which works just fine. ...
0
votes
3answers
2k views

Modify game using external file

In Flash, for example, I can place an xml file along with the binary, then if I modify some variable the game will change for everyone. How to achieve something like that in Android? I know that for ...
2
votes
1answer
482 views

Best way to manage sprite sheets on Android using NME

I'm creating a 2D game for mobile touchscreen devices, specifically Android and iOS. I would like to know what is the best way (regarding performance and best practices) to manage sprite sheets. ...
1
vote
1answer
126 views

Picking game entities

What is the preferred methods for doing so, performance-wise? For example I want to pick certain objects in an area around a given point. What I have thought off so far is using invisible objects as ...
0
votes
1answer
89 views

Object generation from an existing object in a game engine

To simplify, let's say in en engine I'm coding for a game, I have the Main class an Object class. In the Main class' update method, I loop through the array of all Objects in the game. I also have a ...
1
vote
1answer
2k views

haxe level scrolling

How would level scrolling be implemented with haxe and nme? I started plying with haxe and currently the only way to display things on screen is by using nme.display.Sprite. I don't think changing ...
2
votes
2answers
4k views

What are the advantages and challenges of using HaXe over ActionScript 3? [closed]

I read this: http://webr3.org/blog/haxe/bitmapdata-vectors-bytearrays-and-optimization/ And this: http://stackoverflow.com/questions/5220045/what-are-the-pro-and-cons-of-using-haxe-over-...
1
vote
1answer
182 views

Why would Assets.getBytes returns null in a test environment?

I'm using the latest Haxe (2.10), NME (3.4.3), and MUnit. I've written some unit tests that need to fetch bitmap data from SWF symbols. The first step is to actually load the SWF data. To do this, I ...