LazyBassTurd's Recent Forum Activity

  • Just a note, I have a grid of 32x32 sized tiles and if I edit the collision polys to 1 pixel smaller than the actual tiles themselves them seem to register collisions with each other and cause a massive spike collision checking.

    Hope it helps :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can't get your link to work :(

    That's odd, I can get to it fine. What do you see?

    I have got very close now but, it's still not accurate enough.

    dropbox.com/s/vj1fjokrbhmzhig/erasetiles3.capx

  • I'm a little closer to finding the correct tile to erase once it's hit by the laser. Since my math and programming skills need developing I cannot figure out how to find the correct offset to find the tile.

    The last event is as far as I have got, the (temp) object is just a placeholder to view which position is returned.

    Hope that all makes sense I've had a little too many coffees :)

    dropbox.com/s/2hnahs2i0sssnpc/erasetiles2.capx

  • Hi,

    Check out the following example;

    dropbox.com/s/bbq4aktdy2w5vp9/erasetiles.capx

    Left click : fire laser

    Right hold : move

    I'm trying to find out which tile the laser/HitScanner has collided with to erase it. The HitScanner rotates it's angle which is making it harder to locate the correct tile.

    temp (red square) shows the location found using SnapX, SnapY which needs to be adjusted.

    Thanks

  • I played around with the cell size & border and have it moving around now however;

    If I click on the tiles as soon as the level loads the pathfinding ignores the tiles and creates nodes over them. Probably something to do with regeneration of the map in the correct place.

    If I hollow out an area by right clicking the tiles then, left click to start pathfinding it doesn't find it the first time but, if I click again it finds it.

    dropbox.com/s/vp6jwl6hb6f8jvt/PathfindTilemaps2.capx

  • Hi Guys,

    I'm very new so, please be kind :)

    Is it possible to have pathfinding work successfully within tilemaps?

    I have the following set-up, when you right click a tile it removes it so, should no longer be an obstacle but, when you left click to add a path where a tile was previously removed it doesn't work as expected. If however you click in the open area and around the orange tiles it works fine.

    dropbox.com/s/i2kqd90tegxihpy/PathfindTilemaps.capx

    I'm guessing it might be due to setting regenerate map but, have tried a few places with no luck.

    Hope that makes sense, thanks in advance.

LazyBassTurd's avatar

LazyBassTurd

Member since 20 Jan, 2014

None one is following LazyBassTurd yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies