• J
    jamiltron

    Cool, I'm not sure of tutorials on Haxe but I know these get pasted on forums once and a while, may be worth checking out:

    https://learnxinyminutes.com/docs/haxe/

    http://try.haxe.org/

    posted in Kode read more
  • J
    jamiltron

    @turnip I personally would avoid using Dynamic as much as possible, but that's up to you. What can you not get working properly?

    posted in Kode read more
  • J
    jamiltron

    @turnip Unless dictionaries in Actionscript are something different than what I think they are Haxe has Maps which is the same thing.

    There are a bunch of entity-component-systems in Haxe - probably the easiest to grok is the Ash-Haxe port of the Ash Actionscript ECS.

    I haven't really come across any great tutorials for actually using an ECS, so I am thinking about using that as the basis of my next set of tutorials.

    posted in Kode read more
  • J
    jamiltron

    If you're going through the KhaShmup tutorial feel free to ping me on the blog's comments, on here, in irc, etc. if you have any questions, comments, critiques or suggestions for elaboration or further expansion - I'd love to hear them.

    posted in Kode read more
  • J
    jamiltron

    @Robert Ok, the start bit was mostly just out of "what else could I try since this isn't working?"

    It looks like your fix works for me, thank you!

    posted in Kode read more
  • J
    jamiltron

    @laxa88 From my understanding that is how you add a fixed-time task, whereas I am trying to add a frame-dependent task.

    posted in Kode read more
  • J
    jamiltron

    I am calling

    var game = new Empty();
    Scheduler.addFrameTask(game.update, 1);
    Scheduler.start();
    

    in my Main class, and then in my Empty game class I have the following method:

    	public function update(): Void {
    	  trace("update!");
    	}
    

    However, I do not see this trace being called. In the compiled code I added a breakpoint in Scheduler.cpp for when a frame task is added, it appears that the task is indeed being added. But then I put breakpoints in executeFrame around the reference to a frameTasks array, but these are not being triggered.

    Any suggestions, or any tips for diagnosing this?

    Thank you!

    posted in Kode read more
  • J
    jamiltron

    It seems like the only example is in the Blocks From Heaven example and its pretty sparse. Where can I look to find all of the different options for khafiles?

    posted in Kode read more
  • J
    jamiltron

    Ah, yeah x & y were floats and sometimes fractional. I changed it to only position to integers and it seems to have fixed it.

    Thank you!

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.