Rable's Recent Forum Activity

  • Using rexrainbow 's plugin seem the way to go:

  • Didn't you put a "simulate control: Jump" action on start of layout or something like that?

  • Hi everyone,

    A client asks me for an HTML5 game which will be played mostly on mobile, and the game needs to be locked horizontally.

    I referred to this tutorial by Ashley, in which I learned that screen locking only happens after requesting fullscreen, and fullscreen is potentially not supported on every browser.

    So I made a test, and fullscreen mode is working fine on desktops, but not in a single mobile browser.

    I tried the following browsers:

    iOS Safari

    iOS Chrome

    Android Browser

    Android Chrome (on 2 different devices)

    and the fullscreen mode is never recognized on mobile devices. Which is a big problem for me... <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> Is there any workaround which would allow me to lock orientation? Or maybe did I do something wrong?

    On the link above I see that most browsers are notes as "partially supported". Do I need to do something special to access that feature?

    On the code standpoint, I defined the Orientation as "Landscape" in the project settings, and am requesting the fullscreen on the title screen, on a "Touch" trigger event.

    If you want to test the game, here is the WIP: http://test.smurf.com/drop18/

    Oh and it needs to be an HTML5 game playable in a browser, no export with cordova.

    Thanks for your help!

  • Pode

    Nice plugin! Sadly, it doesn't work for me.

    I exported your example as HTML5 (to be perfectly clear, I didn't change anything in the capx) and runned it on Chrome and Firefox, and the camera is never recognized. The UserMedia object stays black even when pressing "open" or any other button.

    Tested on Chrome on a Huawei P8 Lite (phone, not tablet) with android 5.0.1

    and on iPad Air 2 with Chrome v.58.0.3029.83 and Safari

    Then I exported to android via Phonegap, installed the app on my cell phone (Android, Huawei P8 Lite), and the UserMedia object still stays black at all times.

    When building via Phonegap, I unchecked "minify script", and checked "uses camera" and "uses media" under permissions.

    Any idea about what I'm doing wrong?

    Something to define in Phonegap Build maybe?

  • Amazing! Thanks Kyatric !

  • Thanks for the tip. I'll first see if I can do what I need to do with an other software which already manages that, otherwise I'll do as you propose and ask if someone could make an addon for this eventually.

  • Thanks a lot, at least I know this is not possible by default. Will look into your github solution but it seems a bit complicated for me.

  • Hi everyone,

    Is it possible to scan a QR code somehow with a C2-based app? I need to make an app that scans QR codes to access a database.

    I found this plugin about QR codes but it seems that it creates them and doesn't read them.

    Thanks for your help!

  • Hi everyone,

    I'm currently adding share functionalities in some of my games. I've been able to find a relevant Facebook tutorial here, but I'm struggling to find information about how to do the same with Twitter.

    I know there is a build-in Twitter plug-in but AFAIK it doesn't allow to share an image.

    Any idea of how to do that?

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I hope so too! (even more as most of my projects won't open in C3 without an update ^^')

    Thanks a lot for your hard work rexrainbow !

  • Hi alimuqaddas , thanks for your help and kind words.

    I tested your solution, here is how the execute javascript looks :

    "var sound=new Audio('Music/mymusic.m4a');sound.play();"

    I guess that's how you meant it to be done?

    Sadly, it doesn't work better than with the C2 audio plugin.

    The command line seems to work, as the music is playing correctly on Safari installed on a PC or from an iPad. It doesn't work in other browsers (which is normal, as I just launch the .m4a file and other browsers require .ogg files), and doesn't work either on Safari from a Mac.

    Sorry.

    Any other solution for this problem? Anyone else experiences it?

  • korbaach

    Thank you for the elegant demonstration.

Rable's avatar

Rable

Member since 6 Aug, 2014

None one is following Rable yet!

Connect with Rable

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies