graham-s's Forum Posts

  • OK, a couple of questions for clarity...

    1) What browser are you using?

    2) Can you walk us through the steps you are taking.

    For example, if I choose 'Remote Preview', I can't run the app locally UNLESS I open a new browser window, reload the project and run it again. (Fraught with danger having a project open in 2 windows IMHO).

    Using Chrome, I can open the two windows and it still runs fine locally. Using Chrome, I can EITHER have 'Preview Layout' OR 'Remote Preview' not both.

  • On iPhone it's a double tap

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Heres a rewrite of Booty that I've been working on as my first Construct (3) programming attempt.

  • You should need an event wrapped around a coin counter variable.

    Eg:

    Compare #Coins >=10

    Show the UI with the math question.

    Check the answer

    If Answer is wrong Goto Layout EndGame

    If the Answer is right remove the question UI.

    It would be easier to use another layout, but it depends if you game needs to continue or go somewhere else.

    With the above, you need to control when to display the math question otherwise as soon as you continue it will show the question again (since #Coins is still > 10)

  • I had the same issue with Safari,

    I'd suggest clearing your caches in Chrome. (You WILL lose history, local browser storage etc)

    On your computer, open Chrome.

    At the top right, click More .

    Click More tools Clear browsing data.

    At the top, choose a time range. To delete everything, select All time.

    Next to "Cookies and other site data" and "Cached images and files," check the boxes.

    Click Clear data.

  • What isn't running?

    Anytime I change windows, I see all the sprites running around in the background. (In the preview window anyway)

    If you run games in the Scirra Arcade, they run just fine without focus too.

  • Out of curiosity, is there any discounts on a C2 purchase for a C3 subscriber?

    Why you are probably thinking, well, its because of C3 limitations where plugins have not been released for C3. They might be released in the future, so its feasible that an app be written in C2, and ported over later.

    I have a C3 license, but run into walls where plugins aren't available. (Eg: Pode HTML). I haven't found workarounds either.

    Since you got a discount going to C3, wondered if you can get the same for C2

    Just curious.

  • Using C3, (don't have C2).

    As part of my business app, I am trying to open a URL in an app. The user then will have the ability to use a 'return to menu' button (among other things).

    As an aside, another requirement will be to open Google maps via a URL, so I'll need the same capability so the user can see the map, but I can maintain them in the app.

    For C2 users I believe there was iFrame and Pode HTML tools, however don't think either are C3 compatible.

    Being a C3 only user, I don't even have the luxury to do it in C2 while I wait for a plugin.

    Any suggestions?

    Cheers.

  • Do you want to know how many times it was touched, or how many touches at once?

    Eg: If I tap a square 4 times, you see 4. If I put 4 fingers on it I see 4.

    Touch (https://www.scirra.com/manual/119/touch) is the quick and easy way to go.

    For either option you can create a variable to hold the count, and then use

    System>Touch>On Nth Touch Start (or End depending on your goal)

    count each time it starts/ends.

  • just use localstorage.

    but if you want the user to be able to fetch the same progress/variables on different platforms/mobiles/computers, then you need to store it online in some backend tool.

    Thanks for the feedback. While alternative platforms is nice, its a pain, so that I can live without.

    The local/web storage is the feedback I was looking for.

    Thank you.

  • thank U so much 4 your help

    stupid question... what do u mean with the entire game..is it not related only to the variable ?

    is it also ok...or is it totaly wron to make it like that ?

    /quote]

    As dop2000 indicates, you are using 'Save Game'

    https://www.scirra.com/tutorials/526/how-to-make-savegames

    This would save the current status of everything, not just a variable/options.

  • Looking for verification.

    Since I'd rather have one project that covers all platforms, I assume that in order to cover saving and loading I would need to incorporate both local storage for Mobile, and web storage for PC/Mobile?

    I'm quite new with Construct, and I gather that largely regardless of OS, construct is presented in a Web wrapper, so I'm not sure if the Web Storage would work for all platforms, or whether I put a condition around the save/load routines with the 'isMobile' options.

    To be specific, I"m currently only looking at saving and loading options, and not for specific save/load code, more the structure around saving/loading multiple platforms.

    Cheers.

  • I have a game with 'Rooms'. Every level has the same layout, layer0 for the room and UI for the HUD.

    The HUD draws fine most of the time.

    However, as an example if I go as follows, the HUD doesn't display...

    Room 1 > Room 2 (OK)

    Room 2 > Room 1 (OK)

    Room 1 > Room 2 (OK)

    Room 2 > Room 1 (Disappears, never to be seen again.)

    If I wander room to room it generally works, until I start reloading some old rooms.

    Any thoughts?

  • OMG you are a STAR! I hadn't come across persist, but that it exactly what it needs (per the manual write up too)

    Thank you, that is brilliant.

  • Perhaps this thread will answer this...

    https://www.scirra.com/forum/global-array-question_t82348