dupuqub's Recent Forum Activity

  • Before posting a bug, is anyone else having this issue where some tools don't work properly or at all times, e.g. rectangle tool, in either the tilemap editor or the sprite editor?

    Also the hotkeys are not selecting the corresponding tools. I only noticed it in r215 and I'm using Edge because Chrome has been unusable for me for months now.

  • I would check the 4 direct neighbors (up, down, left and right) and orderly put their values in a string like "1001", where 1 is land and 0 water, as an example.

    Then you could have an array describing each possible combination along with a corresponding tile and its status (flipped/mirrored and/or rotated, whichever works best for you).

    The more specific your tile set is, the more specific the source array should be. mirroring, flipping and rotating are mostly generic solutions for more minimalistic art or sample projects.

  • What you did there seems really really good, but kinda overkill for my scope. I'll definitely be reading your code to learn more though, I've never used Advanced Random before and this seems like a good place to start.

    Thanks a bunch!

  • Hi there, I would check for each water tile, and then place their tile according to their neighbors, therefore I think the easier method would be using the redline. Using the yellow line would be a neighbor check, so I believe it would be more demanding on the CPU.

  • Thanks for the reply. The "while" approach really solves it for web workers.

    As for it being rewritten so it selects only undeleted roads every time, I can't see how this is possible since the selection is random and for something like that to work I would have to repeat the process, therefore repeating the function in its entirety again. Is there some other way you can see it happening?

  • I have a simple matrix of arrays of 0s (zeros), like below:

    	const Matrix = [
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0],
    		[0,0,0,0,0,0,0,0,0,0,0]
    	]
    

    I have a function that turns some of them into 1s based on some rulesets. It doesn't run forever, it's observable due to it working flawlessly without web workers. It's also observable that they are really fast, it takes a fraction of a second for them to run without web workers. I'd be glad to share the file if it helps, but there is really nothing more to it.

    Could this be some issue with Web Workers?

    EDIT: github.com/dupuqub/constructs/blob/master/Web_Worker_Map.c3p here's a simplified version. You can check that while using Web Workers it will fail sometimes, but without it, it always works. You can confirm it further by increasing "Globals.Destroy_Max" ("Globals" is a sprite) to a higher value.

  • I'm repeating a function a few hundred times on initialization, it reaches "Maximum call stack size" when using web workers but it works fine when not using them.

    Is this supposed to happen? I've tried making the function asynchronous as some "Promise" discussions on Stack Overflow suggested, but it made no difference for me.

    Also, what am I losing by not using web workers? I understand they "deparallelize" work by opening virtual threads, but aren't computers already multi-threaded? Or is the cpu multi-thread feature limited by the browser?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • another thing

    is there any possibilities when we do undo/redo and the notification shows about what we did then

    Is it possible to also show on which line in the event sheet undo happened.

    something like below

    Yes! I crave that. Also some sort of History Bar, I always feel so lost when I'm on a undo/redo sprint.

  • I do not recommend Spriter. There are already many great games that use it, but from my own experience it's very buggy and lacking in features.

    If I remember correctly, if you buy Spriter now, you'll get Spriter 2 for free, but you have already a free alternative that has possibly everything Spriter 2 has, which is Dragon Bones, you should research and find what best suits you, but just keep that in mind.

  • rraffo da real mvp! I don't even use kaspersky, but your level of effort is what makes communities great, thank you!

  • Thanks for the replies.

    Some notes on them.

    WackyToaster, It happened even when I stopped popping panels out of the layout, I thought that was the issue too after some time, thanks for the thought though, but it'd be such a shame, popout panels are the greatest thing (almost, it will be when we can put more than one panel per secondary tab).

    Dop2000, It happened in the clean Chrome, meaning no addons, it also happened when I installed the Desktop build. I will never in my life use the default theme, light themes for me should be banned from the universe (jk), therefore I cannot confirm nor deny if it happens also on default theme because I'll never test it. And the internet connection thing might be it! I recently started using OpenDNS and I'll experiment for a few days without it and see what happens.

    Again, thanks to the both of you for the insights.

dupuqub's avatar

dupuqub

Member since 4 Aug, 2019

Twitter
dupuqub has 1 followers

Trophy Case

  • 5-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
  • Email Verified

Progress

10/44
How to earn trophies