1,632 questions
0
votes
1
answer
62
views
How do I represent an Array<Dynamic> literal in haxe?
In haxe, [1, 2, 3] creates an array. All the members must be of the same type. If you want to create an array where the elements are of different types, you need to explicitly tell the compiler that ...
1
vote
0
answers
264
views
How setup Neovim for Haxe programming language (LSP and Treesitter)
Hello people on the internet.
I made my own Neovim config https://github.com/Mr-Fox-h/fox-ide and it's a good config, but I want to write codes with Haxe programming language. I installed haxe and ...
1
vote
1
answer
50
views
What does it mean for `haxe --resource <file>[@name]` to "add" a named resource?
The Haxe manual page for compiler usage shows
-r <file>[@name] (or --resource <file>[@name]) Add a named resource file.
What does it mean for it to "add" a named resource file? ...
0
votes
2
answers
64
views
Haxe flixel html5 assets is requested with unique keys in query. How to avoid it?
Admited is result of lime build html5. Assets requests in Haxe Flixel ends with unique key in query. Like http://127.0.0.1:3000/assets/images/soldier.png?582765 after ?. How to exhaust it, just to ...
0
votes
0
answers
165
views
Getting an error, "Haxe version check failed: "'haxe.exe' is not recognized as an internal or external command, operable program or batch file."
Me and my friend are creating a game through HaxeFlixel. We share a GitHub repository, we are both using VS Code, all of our programs are on the same version, and yet I'm still getting this error.
I'...
0
votes
1
answer
49
views
Haxe to Python compilation introduces bug when iterating through dictionaries?
Here's a simple loop in Haxe
for (entry in options.keyValueIterator()) {
defaultOptions[entry.key] = entry.value;
}
However, when compiled to Python, this gets turned into
entry_map = _hx_map ...
0
votes
1
answer
180
views
How to close a window on haxe / openfl / lime / flixel / neko
I want to make a function to close a program after pressing a button, but I don't know how to close the program. I use neko by the way.
I searched into the inter, but I didn't found anything that ...
0
votes
1
answer
432
views
Having trouble compiling FnF source code using HaxeFlixel
`
source/psychlua/CallbackHandler. hx:55: characters 18-33 : Class<llua. Lua_helper> has no field sendErrorsToLua
export/release/windows/haxe/ApplicationMain.hx:153: characters 5-36 :
... Called ...
0
votes
0
answers
51
views
Haxe: Custom Sphere x Box collision, from same size lengths to dynamic w,h,l (Haxe, OpenFL)
I recently wrote some custom physics code to practice my math and to learn how physics work. Here is the code I wrote in order to test collisions between a equal length (ie 2x2x2,5x5x5,32x32x32, etc.) ...
1
vote
1
answer
186
views
Is it possible to globally modify the AST in Nim?
In Haxe, it's possible to iterate through and modify a project's entire AST prior to typing using @:build macros. I was wondering if it was possible to do something similar with Nim?
Nim has a rich ...
0
votes
1
answer
221
views
Opening and using DLL created with HXCPP
I successfully (hopefully) have created a DLL using HXCPP, however I am having a hard time trying to open and use it with an HXCPP application.
I tried using this, and it works for the DLL (Lib/), but ...
0
votes
2
answers
104
views
Counter that shows only at the end in HaxeFlixel
I'm doing a simple counter ( that counts from 1 to 10 seconds ) and is working but not on the screen. It does the counting (1, 2,..., 10) in seconds but only 10 appears on screen when it reaches 10!
...
0
votes
1
answer
175
views
FlxG.overlap doesen't work correctly when changing angle of an object
FlxG.overlap won't work correctly when I change the angle of an object.
The object's hitbox is still where it would have been if it wasn't angled.
I don't know how to fix that.
I tried updating the ...
1
vote
0
answers
59
views
Running libraries with Haxelib leads to `Module not found`, printing out a path containing ^'s [duplicate]
Calling haxelib run <LIBRARY> <ARGS> leads to Uncaught exception - load.c(181) : Module not found : ^C:\HaxeToolkit\haxe\lib\<LIBRARY>/<VERSION_NUM>/run.n^ with carets (^) ...
2
votes
0
answers
56
views
How do I remove FLX trail or change it's parent object or image?
I'm trying to change an object whilst using an Flx trails, but it doesn't update when the object changes. This causes the entire trail to continue till the last frame of the animation where it stays ...