dop2000's Forum Posts

  • As I understand you want to disable the context menu, which pops up on iOS when you touch and hold the screen in a browser game.

    I think you need to do it in index.html or css after the export. Check our this post:

    stackoverflow.com/questions/11237936/mobile-web-disable-long-touch-taphold-text-selection

  • You can set a smaller spritesheet size in project properties.

  • You do not have permission to view this post

  • Two options:

    1. You can right-click any row/column in the Array Editor and choose "Transpose". So you edit the array when all sentences are in one column, and before running the project you transpose them into one row.

    2. Use sentenceArray.At(0, currentLevel) to get sentences from Y axis.

  • Right-click event #3 and change it to OR-block.

    Change the expression for color to bgColor.At(random(0,4))

  • If your images are in the default Files folder in the project, then this action should work:

    Sprite Load Image from URL zeropad(imageNumber, 4) & ".png"

    If you upload images into some other folder on the server, you will need to add path to it, for example:

    "MyImages/" & zeropad(imageNumber) & ".png"

  • tarek2 Cool idea and looks great!

    How did you make this destructible neon image - is every piece a separate sprite/frame?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need to download/upload anything. You can do this:

    Set myVar to Array.AsJSON
    Array clear 
    Wait 2 seconds
    Array Load from myVar
    

    Run project in Debug Mode and see what's happening with the array.

  • You can use Array.AsJSON expression to get it as string. And "Array Load" action to load it back into the array.

  • how did you get that else tho?

    Select an event and press X on keyboard.

  • System For each Enemy
    ..System Enemy.Pathfinding.MovingAngle is within 89 degrees of 0
    ......Enemy set Not Mirrored
    ..Else
    ......Enemy set Mirrored 
    

    There is a shorter but more advanced method which doesn't require "For each" loop:

    On every tick
     Enemy set width to Self.ImageWidth*(anglediff(Enemy.Pathfinding.MovingAngle,0)<90 ? 1 : -1)
    
  • After "AJAX Set response to binary" you need another action -

    AJAX Request URL DrawingCanvas.SavedImageURL

    Then wait for AJAX to complete, and only then save to local storage.

    And the loading function is also wrong. You need wait for "Get item" to finish, then load the BinaryData into a temporary sprite. Wait again, then paste the sprite onto the canvas..

    Use System action "Wait for previous action" to minimize the number of events.

  • I believe Chrome speech synthesis is network-based, there is a noticeable delay while it downloads the audio and it won't work if you are offline.

    NWJS uses the default speech synthesis service built in the OS and it works offline.

  • This is an official addon, so if you manage to reproduce this error in a small demo project, you can submit a bug report.

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

  • I do want to implement it because it seems like a good addition before shelving the whole thing, that is as much as I can say.

    Thanks, this would be a really useful addition in my opinion. I sometimes need to combine several sprites into one and rebuilding image points/polygons for imported animations is often the most difficult and time consuming part.