Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Can't import sys.FileSystem or sys.io.File in HaxeFlixel

I want to use File in my HaxeFlixel project but when i do import sys.FileSystem or import sys.io.File it marks that line as an error and says You cannot access the sys package while targeting js. It ...
Refenger's user avatar
0 votes
1 answer
33 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 ...
Javier Illo's user avatar
0 votes
0 answers
11 views

Lime-Haxe: Error: Could not find build target "default"

I'm trying to compile FNF: Psych Engine and I tried to rebuild the library hxvlc using haxelib run lime rebuild hxvlc windows but it doesn't work. Every time I run the command I got this error. Error: ...
Jaime Humberto's user avatar
0 votes
0 answers
17 views

Null value in HaxeFlixel?

I'm building a simple counter, and I'm getting null value after stoping the counter. `override public function update(elapsed:Float) { super.update(elapsed); do { if (second == ...
jinn8's user avatar
  • 1
0 votes
0 answers
149 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 ...
lemonie's user avatar
0 votes
0 answers
58 views

Multiple errors when compiling FnF

the problem/error I keep on getting I believe my earlier question wasn't clear enough. I kept on getting these errors, before these, I had an error called Tea Call, which I went into the game's ...
lemoniee's user avatar
0 votes
0 answers
31 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.) ...
user23323208's user avatar
0 votes
0 answers
41 views

How can I execute the command “run lime setup” and “run openfl setup” from haxeflixel, on a macbook pro m1 Max, without getting an error?

I recently started the installation process of haxeflixel on my macbook pro, but when I am in the part of running it in the terminal, to see if I managed to install everything correctly, I get an ...
Renxoll's user avatar
0 votes
1 answer
115 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 ...
Griffort's user avatar
  • 1,224
0 votes
0 answers
55 views

Using Haxe, how can I generate python code with type hints?

I want to write a cross-platform library with Haxe. But when I compile Haxe to Python, there is no type hint in Python code. How to let Haxe generate type hints to Python code? This helps users use my ...
Nhan Nguyen's user avatar
0 votes
1 answer
81 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 ...
îndigoUán's user avatar
0 votes
2 answers
79 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! ...
jinn8's user avatar
  • 1
0 votes
1 answer
82 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 ...
Zbyszeq's user avatar
1 vote
0 answers
51 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 (^) ...
incognitoknose's user avatar
2 votes
0 answers
32 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 ...
Marxiplier's user avatar
1 vote
1 answer
68 views

sys.io.File.saveContent and sys.FileSystem.deleteFile failing for unknown reasons

i have encountered some strange issues when it comes to deleting or overwriting files in all haxe/haxeflxiel projects, it used to work fine then suddenly stopped working a while ago, all of them are ...
WeegeeDatBagel's user avatar
2 votes
1 answer
133 views

Haxe: get path to the `std` library

I need to get path to the std folder of Haxe. On Linux system it can be /usr/share/haxe/std, on Windows -- C:\HaxeToolkit\haxe\std\. There are haxelib config, haxelib path and haxelib libpath commands,...
XorNut's user avatar
  • 19
1 vote
0 answers
58 views

Haxe convert fnt to bfnt?

can you guide me to convert fnt font to bfnt? i just want to create 1 bfnt font to make game mod. Hope everybody help please. enter image description here I tried installing haxe and creating projects ...
Nguyễn My's user avatar
0 votes
1 answer
211 views

How change the icon on the game?

I need help with adding an icon to my application using the "Haxe" engine. Can someone guide me on how to achieve this using XML or code? Also, I am attaching an image of my VSC code and ...
Scarlet Eye's user avatar
0 votes
0 answers
23 views

Generate function by its arguments and internal call arguments on a HAXE

Trying to generate the functions to fill lthe class with api methods. not sure how to determine function argument parameters from strings and internal call valuable arguments var todo:...
Продавец Кошмаров's user avatar
2 votes
1 answer
58 views

What causes Haxe error "Invalid build parameters"

When I try to compile my project, Haxe gives a single line of output: > haxe build.hxml MyClass.hx:3: character 1 : Invalid build parameters The line number points to a class in my code that looks ...
Jeff Ward's user avatar
  • 18.3k
0 votes
1 answer
58 views

Haxe 4..x support for inlining delegate calls

In the recent HaxeUp talk somebody mentioned inline delegates support in Haxe 4.x and I am looking for an example of how this works. I would expect something like this (this does not compile): ...
bh213's user avatar
  • 6,503
0 votes
1 answer
82 views

Haxe server socket stops and does not recive messages from client after connecting?

I have my server written in haxe using sys.net.Socket, and clients connect to server succesfully, however after starting a thread for client, it stops at the line where it should recive the message, ...
feweks's user avatar
  • 1
2 votes
1 answer
74 views

Flatten class fields like module-level fields?

I'm trying to use Haxe to generate a Javascript file in which each static function/variable is named like a module-level field (package_ClassName_fieldName rather than package_ClassName.fieldName). I'...
Random Person's user avatar
2 votes
1 answer
104 views

Is it possible to debug (step-through) expanded Haxe macro code?

This one is for build macros but would appreciate answer for other macro types as well. I'd like to step-through the generated code by @:autoBuild(hxparse.ParserBuilderImpl.build()), eval debugger ...
bh213's user avatar
  • 6,503
0 votes
1 answer
58 views

What does the seek method in the FileInput class?

That (https://api.haxe.org/sys/io/FileInput.html) class has the seek(int, enum) method. What it does?
EnDelta's user avatar
  • 13
0 votes
1 answer
218 views

How to use clang compiler with a haxe toolkit?

I want to build my haxe project with a clang compiler. I create the following "build.hxml" file: -lib hxcpp -cpp-compiler /usr/bin/clang++ -D linux -D STATICLIBPREFIX= -D HXCPP_CLANG -D ...
nen777w's user avatar
  • 99
1 vote
1 answer
129 views

In haxe macro, how can I get a type by using a Type name

In the haxe expression macro I have the following code: var t = haxe.macro.Context.getType("h2d.Object"); I'd like to get the type without using a string. Something like this: var t = callX(...
bh213's user avatar
  • 6,503
1 vote
0 answers
90 views

I'm trying to debug a haxe program in visual studio code but Type:Error Cannot read properties of null (reading 'toString')

debug error you can find the code here under canaanreborn2020prealpha/game-master I was trying to haxe compile.hxml but Field drawContent overrides parent class with different or incomplete type so I ...
F. Andrés's user avatar
1 vote
1 answer
99 views

How to parse LuaDoc param comments using Haxe's hxparse

I'm trying to parse some specific lines of LuaDoc using hxparse. Those lines looks like this: ---@param name type description where the type can also be a sum type so in reality it can be string|...
Danielo515's user avatar
  • 6,883
1 vote
1 answer
94 views

Return anonymous structure from expression macro

Given a map Map<String, Int> how can I create anonymous structure from expression macro? This is what I am trying to achieve: var res = myMacroFunc(["var1"=>12, "var2"=>...
bh213's user avatar
  • 6,503
1 vote
2 answers
210 views

Can I do a color swap like Among Us in OpenFL?

Can I do a color swap like Among Us in a game I am creating with Haxe, OpenFL and HaxeFlixel? I found a sprite from Among Us that looks like this Among Us Idle Sprite Can I use shaders or code to make ...
Tombuntu's user avatar
-1 votes
1 answer
87 views

CreditsState.hx:85 : characters 6 - 11 : Expected , or ]

So im trying to code some credits to a game, and when i try to compile it, errors like "Expected , near ]" appears. Heres the code if you need (https://i.sstatic.net/DDFW9.png) I followed a ...
Skid Gaming's user avatar
1 vote
1 answer
165 views

How to set initial size of OpenFL window on native targets, while allowing the html5 target fill the entire browser window?

In my OpenFL project.xml file, I set the initial dimensions of the window: <window width="960" height="640"/> This works great on native targets (windows, mac, linux, hl, ...
Josh Tynjala's user avatar
  • 5,242
2 votes
0 answers
141 views

HAXE - Standard library not found. check "HAXE_STD_PATH" enviroment variable

whenever i try to compile using "lime test windows" (im trying to compile friday night funkin) it gives me this error: "Standard library not found. Please check your HAXE_STD_PATH ...
Arm4GeDon's user avatar
1 vote
1 answer
698 views

Creating a second game window in HaxeFlixel

I wanted to add a second window and I even succeeded, but it is empty and I don’t know how to add anything there, I also couldn’t find a normal description of what is responsible for what. I can’t ...
Pyr0Guy's user avatar
  • 39
1 vote
0 answers
113 views

How do I put a camera on a separate window without lag?

The current way I'm doing it works, but is really heavy on performance, and I'd like to reduce the lag as much as possible. Basically I'm copying the pixels of said FlxCamera onto an FlxSprite, and ...
KutikiPlayz's user avatar
0 votes
1 answer
99 views

Ignore transparent pixels on sprite

So I need the sprite to get bigger when I hover over the sprite with the mouse. But the problem is that the sprite has an unusual shape, which leaves a lot of transparent space. And the mouse reacts ...
Pyr0Guy's user avatar
  • 39
0 votes
1 answer
212 views

How do I solve this error: "source/MainMenuState.hx:25: characters 7-21 : Unexpected selectedOption"

I'm fairly new to HaxeFlixel and I wanted to see selectedOption change to see if there were any mistakes. But I was met with this error: This is the file that had the error (MainMenuState.hx): ...
Tethrarxitet's user avatar
0 votes
0 answers
291 views

SetLayeredWindowAttributes not working under certain conditions

I'm making this app in Haxe which compiles to C++ code. I'm using the SetLayeredWindowAttributes() function to set the background of the window to be fully transparent. The problem is that this works ...
Koharu Xenon's user avatar
0 votes
1 answer
394 views

Unable to install Haxelib Flixel

I am trying to download source code for a project, and it requires a list of installations for "HaxeFlixel". However, when I attempt to install Filxel in the command prompt. It states the ...
Radimus Valdes's user avatar
0 votes
1 answer
155 views

type safe create Lua tables in Haxe without runtime overhead and without boilerplate

I am trying to write some externs to some Lua libraries that require to pass dictionary tables and I want to make them type safe. So far, I have been declaring abstract classes with public inline ...
Danielo515's user avatar
  • 6,883
1 vote
0 answers
50 views

FlxButtonPlus not responding to anything inside of game's pause menu

I am using the haxeflixel game framework to create a game and I was making a pause menu. I tried using the default FlxButton but the collision with the mouse never lined up properly. So I tried using ...
ObviousAlexC.'s user avatar
0 votes
1 answer
54 views

how do i fix expected error on a case when compiling

Where did I go wrong with this code? I've done lots of changes but it just seems to give the same error all over and over again :/ function changeDifficulty(change:Int = 0):Void ...
HollowFans's user avatar
1 vote
0 answers
265 views

How to change FlxG width and height, ResizeGame doesn't work

how do i change FlxG width and height in runtime as resizeGame doesn't do anything i have the project by default set to 1600 x 900 and i have a state for settings where i can change the resolution and ...
WeegeeDatBagel's user avatar
1 vote
1 answer
103 views

Haxe doesn’t have the Literal types?

TypeScript and Python (3.8.x and newer) supports Literal types but looks like Haxe doesn’t (for now). I need to pass a string to the function without typos like in following code. TypeScript: type ...
EnDelta's user avatar
  • 13
0 votes
2 answers
166 views

How I can throw a ray between camera (my eyes) and the mouse cursor on a VR Simulation?

I'm trying to click on VR simulation mode in the browser (Will also be used on mobile), and show a yellow ray from the camera (my eyes/center of window) to the mouse cursor, but I can't get the right ...
Fox Fairlane's user avatar
1 vote
1 answer
169 views

Haxe implicit casts in an abstract based on haxe.ds.Either with Class as a type

I want to use the method described in this article: https://code.haxe.org/category/other/passing-different-types-to-a-function-parameter.html It works fine as long as I provide "concrete" ...
vrumie's user avatar
  • 11
0 votes
1 answer
513 views

How do I create an animation using an xml file with haxeflixel?

So I'm trying to add an animation in haxeflixel and i cant get it to work. So I want to use the .xml file that came with it so I can get width, height, and name of the animation. Here is my sheet and ...
FunFox's user avatar
  • 37
0 votes
1 answer
189 views

How can I play Sound more than once in Haxe/Heaps?

I'm using Heaps.io Game Engine for Haxe and currently trying to play sound WAV file from my resources every time a specific event happens. But it always plays only first time, then nothing. Code ...
Nick's user avatar
  • 1

1
2 3 4 5
33