Danwood's Forum Posts

  • Check the comments. 2 years of hard work, and the guy "unsubscribes because i didn't make the game from scratch", just because i said i used C2.

    Subscribe to Construct videos now

    Do you have this issue too with some people?

  • > It does, i tried. I got hundreds objects, even if i check every 10 seconds, the lag caused by the evet is there. Because i need to put For Each object -> create test sprite -> test sprite overlaps/dont overlap. Basically, it has to repeat the event for every object.

    >

    (Emphasis added)

    Creating a sprite is a far more performance intensive than checking for an overlap! Instead you should just have one instance of a 1x1 sprite which you simply position to the image point, then test for overlap with. If you are just moving around one instance of the "detector" sprite and not constantly creating and destroying them, it should be perfectly performant.

    Awesome! I'm gonna try this

  • I came up with a workaround that seems to work for my case.

    I simply reduce all objects size by a factor of 100, and then make them bigger again just after the check. This reduces the object to a tiny dot, basically, just what i wanted.

    Since i use the self.width /height thing, the process doesnt require For Each, and as far as my testing is right, it is performance-friendly, there is no lag like with the other workarounds.

  • spongehammer

    Nope, here's an example:

    All "Stones" that overlap "Tree" enable a variable, say "Shaded".

    I can simply use:

    Every 10 seconds

    Stone overlaps Tree

    -----------------------> Stone set Shaded to 1

    And that's how it works now, it is very performant indeed, even with hundred stones.

    I just need to know if i can test if the Stone is overlapping Tree at its Origin point, without using for each or creating new sprites.

  • It does, i tried. I got hundreds objects, even if i check every 10 seconds, the lag caused by the evet is there. Because i need to put For Each object -> create test sprite -> test sprite overlaps/dont overlap. Basically, it has to repeat the event for every object.

    While simply overlapping condition doesn't. I'm wondering if there is a way to avoid for each and just test if the sprite overlaps at the origin point.

  • 2 years of C2, a very complex game in development, and still i can't do this:

    I want an object to test if it is overlapping another object at a specific image point (in this case the Origin). I know i can spawn a test sprite at the image point, i just want to do it in the simpliest and more performance convenient way, is there one?

  • It works!! Thanks folks!

  • Colludium nope i didn't yet

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, I have also discussed marketing with Black Shell Media but decided to try on my own. Are you happy with the result of hiring them?

    So far, since sales are going well, i can say yes. I still need to see the game featured in an article from an important site like RPS or Destroctoid, but i guess their're doing their job well.

  • Anonnymitet i'm relying on a small indie-friendly publisher, Black Shell Media, they do the marketing. Nevertheless the simple fact a game is on Stam generates some sort of exposure, considering the new released game are usually features in the "new games" list, and will be in the catalog.

  • Danwood Ok nice. Then I worried a bit too much about greenworks not working in my game at first. But got it working with help of lwgames with achievemts and overlays when I used an older steam sdk with greenworks 0.3 and NW10.5. But I think it will work with the newer versions as long as you use the older sdk:s

    So you'll probably get it to work as well

    It must feel good to see all the positive feedback on Steam Good start on the steam journey

    Definitely, i want Steam archivements for my game, expecially since the game will have archivements anyways.

    Yeah it feels nice xD but on a fairly big number of players, just a few actually reviewed it.

  • I see. So you don't need the greenworks plugin to upload the game to steam and sell it?

    Nope you don't, all the Steam integration features are optional. I'm interested in Steam archivements though, and Greenworks allow you to have them in your C2 game, but not with newer version of NW as now. I can wait though

  • I really love these type of games. Alot of thought has gone into this project

    How did the Steam integration work out for you Danwood does everything work as expected?

    Basically, I've choseen not to integrate Steam for now, as i use the newest version of NW.js, and Greenworks doesnt support it. I will try the integration later in the development, hopefully!

  • I solved using LocalStorage

  • I got a main menu with the option to load a savegame. Problem is, the first time you run the game (and whenever you run the game without having saved a previous game) the options shows anyway. I want it to only show if a savegame file is there, but i dont know where to point the NW object, the exact patch to the save file, which works on every user (not just on my PC path structure). Any help?