You are using wait inside the function. The parent event where you call the function won't wait for it to finish. That's why it displays "???"
If you need to wait for the function to complete, it needs to be set as asynchronous. And asynchronous functions can't return a value.
You can do this:
There is no easy solution. You can spawn invisible sprites on top of frozen tiles with different physics parameters. Or you can check which tile the character is overlapping and change physics setting in real time depending on tile type.
If you have more than one instance of the object, don't use "Trigger once" condition with it! It will cause more problems and bugs.
the problem is that when it is overlapped and creates the object, it creates it continuously without stopping,
You need to use "On collision" event instead of "Is overlapping" condition.
Another option is to check if the object already exists, and only create it if it doesn't exist.
construct.net/en/forum/construct-3/how-do-i-8/nw-js-windows-app-transparent-157915
construct.net/en/forum/construct-2/how-do-i-18/transparent-bg-nwjs-149679
docs.nwjs.io/en/latest/For%20Users/Advanced/Transparent%20Window
Add the sprite to a family, and define all instance variables and behaviors on the family. Then you will be able to pick both instances independently in the same event:
Ball compare variable team="red" BallFamily compare variable team="blue"
In NWjs export you can make the window transparent.
Why are you using scripting for that?
Set text to replace(text, "í", "i")
Set text to replace(text, "á", "a")
Or you can nest them:
Set text to replace(replace(text, "á", "a"), "í", "i")
Can you make an example or draw a sketch of how it should work?
Try asking in this subforum:
construct.net/en/forum/construct-3/plugin-sdk-10
Or on discord:
discord.gg/jMSWeNZP
Maybe someone will be able to update the plugin.
What's the size of frames in pixels? If each frame is 1000x1000px, this is 500MB of images, which will certainly cause a lag, especially on low-end devices.
Here is an example of custom typewriter effect with variable speed
dropbox.com/scl/fi/z7fyy3og8uwbykuzj9x76/Typewriter_custom_variable_speed.c3p
Develop games in your browser. Powerful, performant & highly capable.
Just as an experiment, try removing CBhash from the project and exporting with advanced minification.
Member since 26 May, 2016