dop2000's Forum Posts

  • You can make a small demo project in an older version of Construct. If it works there and doesn't in the latest release, then it's definitely a bug and you should report it:

    github.com/Scirra/Construct-bugs/issues

  • Normally you do it like this:

    For each Sprite
    .. Wait loopindex*0.5
    .. // other actions
    

    But if you put this loop inside "Every 0.04s" event, it will cause havoc.

    I don't think syncing every 2-3 ticks is necessary. And if it is, you should choose a different method. Perhaps combining the properties of all bots into a single string and sending that string.

  • Your project is not big and it should definitely not cause your computer to run out of memory.

    Must be an issue with Chrome. Try opening the project in another browser, preferably in Firefox. If it works in Firefox, try cleaning cache/data in Chrome, disabling extensions, reinstalling Chrome.

    If it still doesn't work, press F12 in the editor and see if there are any errors in the console log.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We noticed a problem in NWJS game - custom cursor changes to system cursor when it touches the edges of the screen:

    Subscribe to Construct videos now

    I tried turning different settings on and off (window frame, kiosk mode, devtools), this doesn't help.

    Strangely, this doesn't happen on some machines. I have two laptops, both with AMD cpu and both running Windows 10, this bug only affects one of them.

    Is there any fix?

    Tagged:

  • Just FYI - I added emojis to some event sheets, it was working fine for a couple of days. But today was unable to open the project.

    So I had to restore an older version from backup.

    It was fun while it lasted, but I wouldn't risk using emojis again, at least not in file names (event sheets, layouts, objects etc.)

  • You mean scroll by dragging the screen?

    howtoconstructdemos.com/scroll-by-dragging-the-screen-with-touch-or-mouse

  • 1. Might be this bug:

    github.com/Scirra/Construct-bugs/issues/3718

    You can try adding a new folder under Objects and moving either the Touch plugin or the menu sprite to that folder. This will change the order of objects and your menu should start working.

    2. If you want to block buttons while the menu is scrolling, you can add these conditions:

    Touch On Tap on Button
    Menu is NOT dragging
    Menu Bullet is NOT moving
    
  • I guess another option is try to use any of the recently added scripting methods, which didn't exist in r344.2

    And catch an exception with try-catch.

    Edit: This code seems to work!

    const inst = runtime.objects.Text.getFirstPickedInstance();
    try {
     console.log(inst.getTagCount("mytag"));
    } 
    catch {
     // exception means that the version is correct
    }
  • GeoffB This is promising! How do I use it in a script?

    I tried console.log(c3_runtimeBaseUrl) and it didn't work.

    EDIT: seems like it doesn't work with worker enabled.

  • The most reliable method is to run the editor by version link. This way it will never update itself.

    Of course we are launching the editor by direct link (editor.construct.net/r344-2/), but several people are working on the project and human errors do happen. I had to spent several hours once manually editing project files because the game was saved in wrong version. I want to prevent this from happening in the future.

  • Thanks, but that's not what I was asking.

  • We are preparing a big game for release and need to stay on Construct version 344-2. But because the editor constantly prompts to update, it's easy to accidentally save the project in a new version.

    Is there any way to check C3 version in runtime? I want to display an alert if this happens.

  • You can encrypt anything, including any JSON files in your project.

    But you will have to use "Plain text" file format to store the encrypted data. Request it with AJAX, decrypt and parse into JSON.

    You can use the official example to encrypt/decrypt your files:

    editor.construct.net

  • On Tap gesture on Tilemap:
     Erase Tile (Tilemap.PositionToTileX(Touch.x), Tilemap.PositionToTileY(Touch.y))
    
    

    Check the manual for other useful expressions:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/tilemap

  • another family with same instance

    You mean with the same object.

    The variable "name" should be defined on the family. It will be available for family and object instances.