dop2000's Forum Posts

  • Yeah, it's really annoying that NoSave behavior can't be added to arrays, dictionaries and JSON.

    I remember posting this suggestion, but it must have been on an old platform, and it never got implemented.

    What you can do is save array.AsJSON in an instance variable on a sprite with NoSave behavior, clear the array, save the game, restore the array from that instance variable.

  • This is possible, but there are three big parts in your question:

    1. You need to find a working addon for reading QR codes, try this link or search the forum:

    construct.net/en/make-games/addons/414/qr-code

    2. If you want to make changed to JSON, you need to parse it, see the official JSON example in C3.

    3. To send data to a server you need to use AJAX and possibly PHP/MySQL, there are lots of tutorials available here:

    construct.net/en/tutorials

  • Events 2 and 3 in your screenshot run on every tick while their conditions are true. You should avoid using "Wait" in events that run on every tick, because this creates hundreds of delayed threads, which continue running for 1.5 seconds even after the condition becomes false, messing everything up..

    Use Timer behavior instead.

    On collision with the boost : Increase max speed, Start Timer "reset_speed" for 1.5s

    On Timer "reset_speed" : Set default max speed

  • And again - press F12 and check errors in console log.

  • Try this:

    1. Start the preview. Don't close it.

    2. Switch back to the editor window.

    3. Press F12 in the editor window. Scroll to the end of the console log, make a screenshot.

    .

    By the way, why does your URL say "startTour"?

    Maybe you are in the "construct tour" mode and that's why it doesn't work. Try to start the Construct normally from this link:

    editor.construct.net

  • This is an English forum, please write in English. You can use Google Translate.

    Most likely one of the addons you installed is invalid. What addons are you using? Try downloading the latest versions from these links:

    construct.net/en/make-games/addons

    construct.net/en/forum/construct-3/plugin-sdk-10/erens-ported-plugins-modules-159391

    You can also press F12 in preview and check error messages in console.

  • After trying to open the file, press F12 and check for error messages in the console log.

    If you are using addons in your project, you will need to install the same addons in C3.

  • You mean the framerate was set to "unlimited"? Yeah, that option should only be used for stress-testing.

    Check the refresh rate of your monitor - if it's high like 120-240Hz, as an experiment try reducing it to 60. See if this improves the CPU usage even further.

  • Where are you planning to store these words?

    If it's a comma-separated string (like "apple,banana,pear"), you can use tokenat/tokencount expressions:

    Set word to tokenat(list, random(tokencount(list,",")), ",")

    You can also store words in an array, then you can get a random word using Array.At(random(self.width))

  • It depends on what you do with these images. If you allow to load many of them, then yes, this may cause problems.

    One solution would be loading an image into a sprite, resize the sprite to the size of the drawing canvas, paste it on the canvas, then destroy the sprite and unload it from memory.

    This way you'll end up with a small version of the image.

  • Now, to figure out why my bullet spawns at my feet every so often when I fire too fast...

    Do you spawn the bullet at a specific image point on the character sprite? Maybe that image point is missing in one of the frames.

  • You've done a great job troubleshooting!

    34% usage by engine seems quite high.. It's possible that the issue is not with your project. Have you checked CPU usage in other projects? For example, try the Kiwi Story game - is the performance much better there? For reference, on my pretty old laptop I'm getting about 25% total CPU utilization, 10% draw calls and only 2% engine.

    If the numbers are much higher on your machine, try different browsers - Edge, Chrome, Firefox. Try enabling/disabling worker mode in project properties.

    Check in debug mode if webgl2 is enabled. If not, then all graphic tasks are handled by the CPU.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use Array.indexOf(value) expression. If Array.indexOf(value)<0, this means the value was not found in the array. For example:

    System Compare Two Values: Array.indexOf(Sprite.var)<0
    ... Sprite set animation frame 0
    Else 
    ... Sprite set animation frame 1
    
  • It could be a bug similar to this:

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

    After using the Crop tool, try closing the animation editor. Then open it and adjust the positions of image points.

    If you are certain you found a bug and can reproduce it - please post a bug report.