Quick Links: Gideros Home | Download Gideros | Developer Guide
HTML5 export "touch" doesn't seem to work after scene change
  • Juts wondering if I might need to change my code for the html5 export, or if it should work the same as the native version.

    When testing in the player, everything works fine. Once I export to html5, I touch the start button in my game and after scene change, it won't respond to the next touch.

    Any help would be awesome :)

    Thank you!
  • pie +1 -1
    Member
    @Ninjadoodle wild guessing, check if this helps :)
    https://github.com/gideros/gideros/issues/333
  • Hi @pie

    Thank for the link, but that issue is related to key presses. I've had that problem before, but this is different.

    Since I'm clicking / touching the screen, the window should be in focus.

    It works the first time, but after changing scene doesn't seem to register the touch anymore.
  • antixantix +1 -1
    Member
    Is the on touch event persistent? I mean if you set the listener in scene 1 and then switch to scene 2, scene 1 is likely destroyed and the listener lost.

    Maybe it isn't that because everything still works in the player though, hmm.
    Check out my DevBlog, my GitHub, and my games Falling Animals | Breaky Wall | Exetor
  • Hi @antix

    Yeah, I'm not really sure what is causing it - in scene1 I click a button so that gets lost, then in scene2 a new listener is added, which works fine in the player but not html5.
  • pie +1 -1
    Member
    Can you replicate the issue in a small project?
  • antixantix +1 -1
    Member
    I agree with @pie, can you post a stripped down version for us to look at?
    Check out my DevBlog, my GitHub, and my games Falling Animals | Breaky Wall | Exetor
  • Is this only an issue in HTML5, or does the same thing happen on the desktop/mobile player?
    My Gideros games: www.totebo.com
  • Ninjadoodle +1 -1 (+1 / -0 )
    Member
    Hi @totebo - just HTML5, works fine otherwise ... I'll try to make a stripped down version :)

    Likes: totebo

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID

In this Discussion

Top Posters