Simply change the effect parameter from 0 to 100 over time.
| Global number p = 0
+ System: Every tick
-> System: Set p to min(p+20×dt, 100)
-> System: Set layout effect "Grayscale" parameter 0 to p
.
Another option is to use Tween behavior. Start a value tween on some object from 0 to 100. While this tween is running, set effect parameter to Object.Tween.value("tag")
You can't change the position of the real mouse cursor, but you can control a sprite, emulating mouse movement. There are two methods:
System: Every tick -> CursorSprite: Set position to ..... X: Self.X + Gamepad.Axis(0,2)×dt×4 ..... Y: Self.Y + Gamepad.Axis(0,3)×dt×4
System: Every tick -> CursorSprite: Set position to ..... X: lerp(Self.X, ((Gamepad.Axis(0,2)+100)÷200)×LayoutWidth, dt×10) ..... Y: lerp(Self.Y, ((Gamepad.Axis(0,3)+100)÷200)×LayoutHeight, dt×10)
You do not have permission to view this post
With NWjs you can delete files, but it won't work on mobile.
Are you sure FileChooser works in mobile export? I've never tried it.
To delete a file from a mobile app you will probably need to use some Cordova plugin (like "cordova-plugin-file") and call its method from a script.
I don't think deleting files is allowed in HTML5 export. You can do this in NWJS or possibly Webview2 exported project.
The idea being, a user downloads a custom file from their organization, then once the user has loaded the file into the app, the source file is deleted from their device
Can you request the file from the organization website directly in the app, without asking the user to download it first?
Ah, it's a shame..
Are there any news about Webview2 on Mac?
Check out this demo
howtoconstructdemos.com/template-for-a-card-game-shuffling-a-deck-of-cards-dealing-cards-to-two-players
We're having some weird performance and permission issues with Mac64(Intel) builds of our game running on Mac M processors. We were hoping exporting for ARM would fix them. And in fact the ARM version runs beautifully, at steady 100 fps!
However, I can't get the Greenworks plugin to work in ARM export.
I tried NWjs versions 77-81 and several Steamworks SDK versions, but keep getting this error:
Am I missing something? How can this be fixed?
Are you sure your Paypal account allows to receive money?
The easiest way to do this is with a variable:
Global variable lastClick=0 Mouse On Click lastClick<(time-0.2) ... Set lastClick to time ... Player set "punch" animation
This way there will be 0.2s cooldown between punches.
Yeah, it's a bit of a mess. I suggest you use three separate events:
On Touch Start
Is In Touch
On Touch End
You can add additional condition to each of these events to check if the object is being dragged etc.
In this case you should use random(2,5) time.
do i need to make a at least 5 different sprites with different random movements
No, it's a bad idea. You can randomize movement properties like speed for every instance of the sprite. For example:
Sprite on created -> Sprite set maximum speed to random(80,100)
Making diffe
random() can't be use like that.
If you want the event to be triggered every 2-5 seconds, use random(2,5)
Or, if you want it to be in 0.5s intervals, use choose(2,2.5,3,3.5,4,4.5,5)