dop2000's Forum Posts

  • 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)
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

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