dop2000's Forum Posts

  • You need to report these things to bug tracker. Looks like someone already did:

    github.com/Scirra/Construct-3-bugs/issues/5159

    Beta versions often have issues, that's why I always use stable version.

  • If you only need to store 0 and 1, you can use setbit/getbit expressions. There was a post about them just today:

    construct.net/en/forum/construct-3/how-do-i-8/someone-explain-setbit-164563

  • It's not clear - what do you store in this array?

    Do you have just one instance of "coins" sprite on the layout? You are checking 40 rows in the array and possibly changing coins animation frame 40 times, so only the last time will count.

    If you have 40 instances of coins sprite, then you need to pick the right instance inside the loop.

  • Instead of "trigger once" try "Tween is NOT running" condition.

  • If you are not familiar with the binary system, look it up in google, there are tons of tutorials and videos.

    Any number is made of bits. For example, number 14 is 00001110 in binary. Setbit and Getbit allow to access individual bits in a number. Basically, this allows to use a single numerical variable as a small array of bits.

    For example, you might have 10 treasure chests in your game and you want to keep track of which chest is closed and which one is open. The usual way to do this is with an array. But you can also use a single global variable ChestsStatus to store this information for all 10 chests.

    When a chest becomes open, Set ChestsStatus to setbit(ChestsStatus, chestNumber, 1)

    This will set the bit for this chest to 1, which will indicate that this chest is open. Then you can save ChestsStatus variable to local storage, and later retrieve the information about open chests using getbit() expression.

  • You can't load this data directly into an array. Arrays in Construct require a specific JSON format.

    So you will need to extract high scores from the LeaderboardJSON object. There is a template in C3 demonstrating how to work with JSON object, check it out.

  • Definitely need them back soon. I'm missing many replies in topics which i used to follow.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • drutten There is a new feature in Mouse plugin - Pointer Lock.

    I haven't tried it, but I'm guessing you need to lock the pointer and then show your own cursor in the game, bounded by your window/viewport. You can use Mouse.MovementX and Mouse.MovementY expressions to calculate cursor position. Strangely, they only seem to work inside the "On Movement" event.

    Edit: see this demo

    dropbox.com/s/qfexm6x9l0lgw2s/PointerLock.c3p

  • Press F12 and check console log for error messages.

    Are any other nwjs features working?

  • The rate feature is controlled by mobile OS (iOS or Android). Here is a quote from Ashley:

  • Bullet behavior can bounce off solids too.

    If this doesn't help, please give more details about your game - is if top-down, platformer, or something else? Which behaviors are you using?

  • It has been like this since Construct 2.

    You can move files into sub-folders after the export. But you will have to change paths to these files in your events. For example, instead of Load "image.png" you'll have to use Load "Pics/image.png"

    There is a System condition "Is in preview" you can use to make sure your game works correctly both in preview and when exported:

  • Construct2 is also closed. You can still build apps with Cordova CLI or Android Studio.

    .

    The best solution is to migrate your game to Construct 3. It has it's own build service which is really easy to use. There is a working Admob plugin and third-party addons for other ad networks.