grigrizljac's Forum Posts

  • OK, part of the solution to this... if I export the project with NW.js then it works... but if I export it to HTML5 it doesn't (I've tried directly from the folder on my desktop or uploading to my public dropbox folder).

    Is there a way to write external files in HTML5? Maybe not using NW.js, but other method?

    Conditions and actions of NW.JS work only if you preview with NW.js and/or export as NW.JS.

  • (I'm pretty sure, he cannot reproduce it. Again. Because in his own paradise all works well).

    That's technology and Murphy's law. It doesn't work when you need it; it works when you want to show it doesn't.

  • I have some mixed feelings about C2. At first, I'm very happy I found it, it's incredible and everything.

    One thing I'm somehow frustrated is, however, that I can't export my game to iOS without the status bar. On the website, it says it can be exported to iOS. With this, I expect to export without problems like this. It's like you go into a bike shop, buy a bike the seller says you can ride it everywhere, but then soon you realise you cannot ride it on some roads (let's say you cannot ride it on the street to your home, but you can ride it on the street to the shop, and no one knows why; they both look similar).

    Anyway, I'm happy about C2, it helped me make many things and learn a lot.

  • I think dictionary is very useful especially for things you have to save. I use dictionary for the things I need to save; save as JSON to LocalStorage, load from LocalStorage, so I have only 1 key. On the other hand, I use variables for what I don't need to save.

  • ... Can I update my game on Google Play with CooconIO APK if I the game was wrapped with IntelXDK earlier?

    No you can't. There are two reasons (at least I know only two). First of all CooconIO has no option to edit app version (this is actually a good thing, cause CooconIO does it for you automatically, where with IntelXDK you had to remember to increment the ID before you publish your APK). And the second reason is that there are different sign certificates and Google Play refuses to accept the APK with different certificate.

    So if you are on alpha/beta stage, you can always remove the app from Google Play and create it again. If your app is released to production already then it's too late. At least I don't know the way to do so.

    I guess (only guess, don't know) it may be possible if you can import your own certificate to CocoonIO. You can ask Intel to give you the certificate that is used to build your game. If possible, then import it to CocoonIO.

  • See also, as one can reset a global variable, and no reset all?

    I guess the only way to do that is System|Set value to 0 (or whatever you have at start).

  • I don't exactly know, what you want to do, but as I see, you don't save all the keys to the storage (you request 7 keys, but later save only 4). What I also see is that you enable group "Group", but you don't have a group called "Group". I'd recommend you trying to figure out the LocalStorage on a small example, just a few basic things at first, then the things you need (maybe some random input or so). Then you'll be able to transfer your knowledge to this project.

  • Update: the sound plays when headphones are plugged into the iOS device but don't play without headphones or earphones. I still don't know why the sound isn't playing when there aren't earphones plugged in.

    Make sure your iOS is not in mute (check the slider on the side of the iPhone or Control Center for an iPad).

  • I guess you already have a variable for coins. What you have to do now, is this: one way is to use modulo. I think that's the simplest, because you don't need any additional variables.

    Add an event:

    System|Compare two values: Coin%100 = 0 (and) Trigger once while true -> System|Add 1 to Life

    (Assuming Coin is the variable for coins and Life for lifes)

    https://www.dropbox.com/s/yyaxf6pw0emqt ... o.jpg?dl=0

    Maybe you may want to add another condition: Coin /= 0, so 1 life isn't added on start when you have 0 coins.

    https://www.dropbox.com/s/gyhd4vxhz3u6y ... 2.jpg?dl=0

    What is modulo?

    Modulo is actually the remain of dividing. In C2, it is represented with percent sign (%).

    Example:

    50%100 = 50 (50/100 = 0, 50 remains)

    100%100 = 0 (100/100 = 1, 0 remains)

    200%100 = 0 (200/100 = 2, 0 remains)

  • file> save as project

    open capx in notepad

    find

    <saved-with-version>22200</saved-with-version>

    change this to

    <saved-with-version>22100</saved-with-version>

    and upload

    You actually have to open .caproj in npad. If you have a .capx file, you have to open it as an archive (7zip or sth) and then edit the .caproj file inside.

  • I see potential in it, the preview is ... I don't know, what to say, but ... interesting and a bit frustrating, forcing you to play more

  • Thank you for your reply but is not working.. So to create a logical line like a said above is too difficult?

    R0J0hound 's solution seems to work ...

    https://www.dropbox.com/s/4eei661iviid9 ... .capx?dl=0

  • I assume you are checking "Hide status bar" when exporting from C2?

    Yes, I do check "Hide status bar" in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1 and 3 are Broswer|On Back button pressed and Browser|On Menu button pressed. I guess you cannot use 2 since it naturally goes to the home screen.