WackyToaster's Recent Forum Activity

  • Hmm you probably have to loop through it, depending on how exact it has to be you probably want to not loop through on a per-pixel basis but maybe a 3x3 or 5x5 pixel basis (and not every tick) for performance reasons. A full HD image checked on a per-pixel basis would mean just above 2 million checks aka really slow. I think you would get the best result in terms of performance you´ll get by scaling whatever image you have down to a much smaller resolution (like a tenth maybe? 192x108 px) and use that for comparing rather than the full sized image.

    Then you loop through that grid on the canvas (snapshot), and if there is color on the canvas (using DrawingCanvas.SnapshotAlphaAt) on that tile attemt to pick the sprite with pick overlapping point. If it is picked, that part of the tile has color and you could increase a variable to keep track of how many tiles are colored VS the amount of tiles and simply calculate the percentage from that.

    Note that by picking the Sprite like this it uses the collision polygon of the sprite to check if it is overlapping or not, it may be a bit imprecise. You probably can instead use a second canvas that you copy the image on and check that DrawingCanvas.SnapshotAlphaAt against the first canvas' DrawingCanvas.SnapshotAlphaAt.

    I have not tried this so no guarantees :)

  • Is the device in silent mode? I had quite some headaches simply because silent mode will actually silence apps that use wkwebview (aka what Construct uses) for some reason while other apps keep working fine.

  • You do not have permission to view this post

  • Are you using 3rd party plugins? This sounds a bit like a memory leak if it just continues to grow. I remember the physics plugin caused me some issues like that back in C2 times after letting it run for an hour or two.

  • The thing is, this is once a year and C3 renews once a year. So everyone would be paying half all the time and complain if one year they don´t do a cyber monday thing.

  • That's not how holidays work. You are supposed to ignore work during a holiday, even tiny bits.

    Of course it's frustrating, but sometimes just taking a deep breath and giving things a bit more time works wonders. Especially when it isn't a life or death situation.

    Though I would say a prominent "I'm on holiday and won't respond to your messages until X" kind of thing would have been a good idea.

  • Sadly not. You'll have to split it into individual objects. I think there is a 3rd party plugin that does that too but I never tried it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can´t include PHP in Construct, PHP is a server-side language. But if you have a server, you can use AJAX in Construct to send information to a PHP file (or receive it)

    construct.net/en/make-games/manuals/construct-3/plugin-reference/ajax

  • You simply have some things messed up in your layers:

    As you can see, you have one of the floor tiles above the player. Also you have the layer BG (I assume it means Background) above the layer of the player. I´d reorder it like this and make sure that everything is on the correct layer.

    EDIT: Images not showing up...

  • Nepeo with the wisdom. I´m pretty sure a good portion of what you said applies to terraria (manhattan distance, chunking and even the way sunlight works)

  • What about the shadowlight? It's not too similar but provides lighting effects.

    For a similar effect I think a canvas could work pretty well. Adding brightness tile by tile based in distance to light sources and removing brightness if the tile isn't empty.

  • You do not have permission to view this post

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs