• A
    AnguelEsperanza

    Hello Everyone, I have something I want to tell you all. As the title says, I'm making a 2D Dragon Ball Z clone using Kha. So far it's still in it's early stages and has work to be done before anything substantially playable comes along. In light of me making this choice to make a game using Kha, I've decided to post my progress on my blog. That way, other people can also see how the game's been coming along. When the game is done, I want to upload the project completely to the internet once it's all said and done, with comments so others can learn from it as well.

    Here's the first post that shows what I've done so far.
    https://tacodesu.wordpress.com/2016/09/24/dbz-clone-game-part-one-what-i-have-so-far/

    I won't make posts here about every new post I make on my blog, to avoid spamming the forum. I hope you all come and check out what I've been working on. And I wish you all a fantastic day.

    Sincerely,
    Anguel Esperanza

    posted in Kode read more
  • A
    AnguelEsperanza

    @Robert Hello again and thank you so much. After following what you said and installing the proper files that Android Studio needed, I got it all working with a new project, and it debugs to android. Now I'm even closer to finishing my project. Thank you for the help.

    posted in Kode read more
  • A
    AnguelEsperanza

    Hello Everyone,

    I have a six questions about compiling to android. I tried figuring it out myself, but there's a few things I don't understand.

    1. What's the difference between 'android' and 'android-native' and which would I use when compiling. I've tried both and both give different outputs. Or is there another android variant that I should be using, that I'm not aware of?

    2. What do I need for compiling to android? Do I need the JDK? SDK, JVM. I tried installing them but I still wasn't able to get anywhere when I used Eclipse.

    3. Which IDE do I use? I used both intellij and Eclipse but I wasn't able to get the project to compile/debug it. The run/debug buttons were not clickable. Is Android Studio an option? when I complied for android, a project-android-intilij folder shows up but when I opened with intilij, I wasn't able to do anything with it in terms of running/debugging it.

    4. How would I open the project? I tried opening and importing but both options didn't let me run/debug the program in either of the IDE's I used.

    5. Does 'android --compile' make an APK? I know 'windows --compile' makes a .exe but I didn't find an APK when I used the compile tag on android?

    6. How do I use touch input?

    These are the six questions I have about compiling to android. I'm working on a really simple program, a four button beat pad but I can't get android to compile, or if I am, I don't know how to get it to a .apk file. And I don't know how to work with touch input.

    Thank you for reading this and for any answers anyone can provide,

    Sincerely,
    Anguel Esperanza

    posted in Kode read more
  • A
    AnguelEsperanza

    @lubos That's great to hear. Thanks for letting me know.

    posted in Kode read more
  • A
    AnguelEsperanza

    Hello Everyone,

    I was wondering if Kha works with Haxe 3.3.0-rc. As for why I'm asking and not trying it for myself, here's a small explination.

    I while ago I made a post here about how I couldn't get kha to compile to any target (outside of html5) without an error. I managed to get help, sadly, my laptop reached the end of it's life so there wasn't much I could do. After borrowing one, I had stayed away from Kha due to the frustration of not figuring out where I went wrong, which looking back on, was really simple. I was using git Kha, but compiling with haxelib Kha. Finally though, after getting past my own stubborness, and because Kha looks more interesting than OpenFl, I went and tried it again many months later expecting the same response, which to my surprise, it worked. Now, after getting a new laptop, I was wondering if Kha works with Haxe 3.3.0 rc.?

    Has anyone tried it before and had any success? Or should I stick with Haxe 3.2.0 for now?

    I know this was a bit long for a simple question and I apologize if it was annoying to read.

    Thank you for taking the time to read all of this.

    posted in Kode read more
  • A
    AnguelEsperanza

    Hello everyone,

    I hope you all have had a great day so far. I have been having a problem with Kha. As the topic states, Kha does not want to work 'out of the box'. I have tried multiple methods to get Kha to work, yet they all end in vain. I have installed Kha using both haxelib and git. I have done both seperatly (haxelib kha is not installed when git kha is) and at the same time, and neither seem to work. When I installed git Kha, I then updated it using the haxelib command and then the updated the submodules using the git command from the kha official website, the last of the available commands for first installation. I have used both the debugger in Kode Studio, using the 'Kha haxelib run make' command
    and I have tried node and nothing works. I have gotten two errors. The first being

    .\Sources/Main.hx:9: characters 14-55 : { width : Int, title : String, height : Int } should be String
    ..\Sources/Main.hx:9: characters 14-55 : For function argument 'title'

    The second being below every time I compile to windows.

    MSBUILD: error MSB1008: Only one project can be specified. Switch: Project.vcxproj
    For switch syntax, type "MSBuild /help"
    Compilation failed.

    I don't know where to type MSBuild /help or if it will even help. I get errors as well when compiling to any target other than HTML5( which is the only one that works )

    This error just appeared today as well.

    Failed to load resource: net::ERR_FILE_NOT_FOUND (file:///C:/Users/user/Desktop/ano/build/debug-html5/kha.js)

    I followed the Lewis Lepton's tutorial's exactly, but only on windows and not mac. And I even tried the introduction video from Skylar Parr. That didn't work either.

    I've tried using both the default init.js file that Kode Studio has and the one that Lewis Lepton provides and the error still does not go away when compiling/running/debugging. These errors transfer over when I try to run any windows project in Visual Studio.

    Is there anything that I'm doing wrong? I've made a large amount of new kha projects and have done a lot of fresh installs of kha and have tried experimenting in different ways. I cloned the available empty project from the kha website but for some reason, the functions aren't right. The update and render function are both inside the new function. And I have used the 'init' command with Kode Studio and the error still persists.

    Any help will be greatly appreciated. I really want to try and use Kha but it doesn't work for me.

    Thank you for your time.

    Sincerely,

    Anguel Esperanza

    posted in Kode read more

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