Danwood's Recent Forum Activity

  • I have a function that updates UI texts, and an event that triggers that function every tick during specific conditions: in WebGL it runs at 60fps, in WebGPU runs at around 10fps. If i disable the functions, runs again at 60fps.

    WebGPU is hella slow at rendering text objects.

  • It's a great concept, the kind of game that facinates me. Trust me, this is going to be a lot of work since it's a complex game with many interconnected systems, it will take time and brain power! I know that because I spent 10 years developing an ecology survival sim called DinoSystem...

  • as title - there's the new browser action "set window position", but i can't find the right X/Y coordinates to move it at the user's desktop center.

  • Also game load causes issues

  • Yep it does prevent worker mode. Now a way to have it and keep worker mode would be the best of both worlds!

  • > Doesn't this unfortunately prevent the game from running in Worker Mode? Which means that you'll lose performance/smoothness by doing it.

    Hmm yeah I think that's the case. You can also edit the exported index.html though like so, which should keep the worker mode enabled I think.

    But I there should be an in-engine way to handle this. A "prevent default" plugin or something, because it's one of those topics that comes up over and over again.

    BTW, this code should disable all keyboard inputs, iirc including alt+F4, F12 and such.

    > document.addEventListener('keydown', function(event) {
    	event.preventDefault();
    	});

    You sir saved my life!

    Will adding this to main.js script prevent worker mode?

  • In addition, there are more browser commands that are messing with my exported game: aside the F keys, when i hold alt and than move with WASD, my character gets stuck and there's a window alert sound.

  • Put this into the runOnStartup function in main.js

    > document.addEventListener('keydown', function(event) {
    		if (event.key === 'F5') {
    		event.preventDefault();
    		}
    	});

    I tried to open the main.js file with notepad++ and it's a wall of text, how can i show the code as in your screenshot?

  • Oooh interesting, I utilise F keys in my project, but haven't tested it yet. Does it get overridden if you have an "on f5 pressed" event present? I'm guessing not, but wanted to check.

    It doesn't unfortunatly

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to prevent WebView2 to prompt page refresh with F5, and other commands as well with F7 etc?

  • in construct 2, the pin behaviur did a small "delay" if the object pinned was not in the same folder of the object it was pinned to, is that the same in construct 3?

  • Darn, I just got another person saying that the game won't load due to Malwarebytes. Not sure if this is something that I can report like a bug or not. Does anyone know?

    This should be reported directly to Malwarebytes, but Ashley has the final world.

Danwood's avatar

Danwood

Member since 2 Jan, 2014

None one is following Danwood yet!

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x5
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies