dop2000's Forum Posts

  • Use "Tween value" action and "Is tween playing" condition:

    Sprite Is tween "tag" playing: Sprite set effect parameter 0 to Self.Tween.value("tag")

  • I have to ask, what are you logging that possibly requires that many events?

    Well, last time I checked our project had about 10K events..

    Most of console logging actions are disabled of course. But there are still hundreds of active ones.

  • I just released a Greenworks plugin update for v0.82.0 using Greenworks v0.15.0, which supports a universal binary for macOS.

    Thank you, this is awesome!

    If only this addon had a method to check for installed DLC..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I suggest you create a small project to test the gamepad. Add two large text objects and this event:

  • I had 1070 "browser log" actions in the project. Replaced them all with a function call today. Took me several hours even with a fair bit of hacking.

  • This post got me worried. I always thought that if you disable DevTools on export, then all "browser log" actions will be automatically skipped/disabled too. But turns out this is not the case, they are still executed and still very much affect the performance.

    I will have to replace "browser log" actions with a function in hundreds of events, and remember to disable the function before exporting.

  • 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.

  • You do not have permission to view this post

  • 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?