nutmix's Recent Forum Activity

  • I put:

    Browser->On went offline: do something in GUI
    

    but it doesnt work for Chrome (21) or FF (14.1) on a PC or safari on iphone4

    I bascially switched off the wifi, and tried hitting a page in another tab so the browser really knew it was offline, but no joy.

    I tried it from the preview on lan, and also I exported the project to apache 2 and hit that, but no joy.

    Am I doing something wrong?

    using R99

  • Our game only works when connected to a server, and we dont want to scare off our casual users with the browser message:

    "this web site (...) is asking to store data on your computer for offline use"

    How can we switch this feature off (i.e. no offline caching)?

    Its a reqirement for us launching, unfortunately.

  • We have very poor bandwith, and would like to load the game assets (images & sould etc) from a CDN (content delivery network).

    Also, we wish to be able to skin the games by pointing to different asset locations dynamically, or at least statically.

    Is there any way to do this (and still work locally in dev mode?)

    Thanks!

  • The ability to have simple popups like "are you sure [YES] [NO]" or "Lost connection to the server [OK]" would be a huge help. Every game I have created needs these, and its not easy to create them as events go through layers.

    If its not feasible to create a popup window type function, then at least the ability to block events past a layer would do - then one could consturct ones own modal dialogs.

    A games input logic is usually complex and hard to read with nested Ifs etc, I dont think its tennable to add more state to try and ignore input by hand if we are simulating a modal dialog. So currenty I suspect some of use developers don't offer the player choice or warnings when perhaps we should.

  • Thanks for the link. Looks like modal dialogs are not possible with construct 2 as I feared. Its not possible to block events to the layers below.

  • If I want to do a popup with for example some text, and ok button and cancel button, is there a way to do this?

    I dont want to switch to another layout as it will delete all the current layouts objects.

    I experimented with bringing hidden sprites to the top, but the games buttons etc. underneath are all still clickable, even if I make them invisible and put them to the bottom layer.

    I searched the forums and the howto FAQ

    Any Ideas?

    I imaging most games will need this at some point, e.g. asking if you are sure you want to start again.

  • Hi,

    I see one can set the layout and also the layer scale. Would I be correct in thinking that scaling the layout scales all its layers?

    Thanks!

  • thanks for the reply.

    Unfortunately, the letterbox scaling is not appropriate for mobile, as black bars are not acceptable to the customer and it makes the buttons too small, especailly in landscape.

    What is a canvas? I cant find it in the manual.

    I am strugling to understand the difference between window size, viewport size, actuall browser window size, layout size, layer scaling and canvas - I belive its a missing page in the manual.

    Any tips appreciated.

  • Hi,

    I have two layouts, one for landscape and one for portrait (for mobile).

    They both have the same event sheet attached.

    However, when the player switches from one to the other, the layouts objects are destroyed, and I lose game state (as I was storing the game state in the objects parameters.

    I need to restore game state on layout switch.

    I tried adding an "on start of layout" event, but this fires if you resize the same layout, so not useful in this case.

    I can see a few ideas:

    1) store the layout state (portrait or landsape) in globals. I try and avoid globals for state where possible as they are difficult to manage in complex conditions.

    2) possibly detach the single event sheet from both layouts, and attatch separate event sheets that do something only once on switching to that layout, then include the main event sheet. However, I dont know what that event might be?

    3) other cunning strategy?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Ashley, its not just the text, it scales image sprites too. In the capx I posted, one of the layouts just has a backgroung image. As you change the browser window size, the image scales up/down and jumps around to the wrong place. In crop mode, it should not scale at all, and should stay centered. IE is perfect but FF and Chrome are disastrous.

    I'm guessing it's not a text specific problem, it seems to be scaling in crop mode which is the problem?

    My graphics card is a Quadro 2000M which is adobe and autocad certified, rather than a more common consumer/game oriented card.

    Thanks for taking the time to look at it anyway. If there are any more tests I can run let me know. I use crop mode exclusivly.

  • Unfortunately, appMobi etc are not options for us, as our games are casino type games which are not allowed in the stores, and we have our own existing web based payment systems.

    We have to deploy these apps in the standard browser, and find work arounds for the various issues (we can live without sound effects for now).

  • The mobile game will be opmtimised for iphone 4 and similar sizes. Retina display is switched on in the project properites, allowing 640x832 on the iphone. This will also work reasonably well in the original ipad size. Is there any way of switching off retina display (e.g. in the index.html) if ipad is detected, to not go to the silly resoluion the ipad3 provides?

    Any ideas much appreciated.

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies