nutmix's Recent Forum Activity

  • I added audio to a game - if you hit a button it plays a sound.

    It works find in FF, but doent do anything on Android 2.2 browser.

    Is android supported for sound does anyone know?

    Thanks!

  • E.g.

    variable X = 9

    OR

    (button touched

    AND variable Y = 0) -> do a long list of actions.

    then have one list of actions.

    However, If I do the what appears to be right, then I have to duplicate the actions in both blocks (which is horrible).

    I havent worked out how to share a capx yet. I have dropbox, but the only option to share a folder it gives is to share with a specific person, not everyone. Below is a link to the file, but I really hope noone can download it otherwise everyone can see everything!

    dropbox.com/s/o89d19qbbjzyphp/and_or.capx

  • I've never been able to get any of those 'hide address bar' snippets working with C2's engine, can you link me to one that you know works?

    Ok, I'll try some out and let you know what I find.

    I saw that google.co.uk and will-hill.mobi managed to do it. I was thinking of using charles proxy to peek at their code.

  • Tried them all, and "on touched Object" coupled with "Use mouse input" property = yes seems to work.   The manual page descriptions of these events didnt mean anything to me, so could not go by that.

  • Brilliant, thanks. Got the Ajax working a treat too.

  • Wow, nice tutorial, thanks!

    With luck, the next version of C2 will have full screen suport on Android without adress bar ;) There is lots of js floating about to achieve this.

    I will look into the cocoon.js exporter.

    I just found the tutorial search page, this will save me a lot of posts!

    There is no tutorial yet for how to write apps for android (only ios) :(

  • I have a project which has some sprintes as buttons (e.g. bt_buy)

    I was using the mouse, i.e.

    Mouse-> on left button clicked on bt_buy -> ...

    This worked on PC not not on all mobiles.

    so I changed mouse clicked to "Touch -> Is touching bt_buy" and set "use mouse input" to Yes.

    But now when I click on my buy button in a browser with the mouse, it registers about 20 button press events!

    How do I support either clicking on a button in a browser with the mouse, or tapping the finger with a mobile, without incuring many taps, only one?

    What should I be using:

    1) is in touch

    2) on touch end

    3) on touched object

    4) is touching object

    5) on toutch start?

  • When you export the project for a webserver, it wraps the game in html/css/js etc.

    I need to modify the index.html that it procudes, as it doesnt work correctly for android (doesnt get rid of address bar for full screen apps).

    Is there any way to do this, other than to re-edit the files after every export?

  • When the game is launched, it is done from a web site where you are logged in (so have a session)

    The game needs to be able to access the session parameters to authenticate.

    Also, URL parameters migh say what launage to use, or what skin to load.

    how does one access & use these?

    If they are not accessable, then I cant see how construct 2 can be used to write games lauched by a logged in user.

  • I am not entirely sure that android browser can have no address bar.

    Interestingly most sites on android browser display no address bar once loaded, e.g. will-hill.mobi, or google.co.uk

    Some sites have the address bar glued to the page after loading, including any game generated by construct 2, www.bbc.co.uk, and even htc.com

    I assumed the problem was a bug in construct 2, but perhaps I was hoping too much for out of the box android support.

    Thanks for the js. how does one go about putting custom JS like this into the page generated by the export process? Does one just edit the exported pages each time?

    I can also try using charles proxy to analyse the difference between sites that work and dont work, but most of the minify the js, so it may not be possible.

    Thanks for the help!

  • Havent quite figured out how it works, but the result is prefect.

    +1000 credits to R0J0hound!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But there are numerous ways to workaround this (groups that you activate/deactivate,

    Very sorry to be a pain, do you know of an example or tutorial to see how groups are used in this way? The manual page states they can be activated/deactivated, but I didnt see how that can be of use as a programming construct.

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies