jobel's Forum Posts

  • congrats! looks great.. downloading now!

  • mekonbekon oh yes I noticed that placing didn't work.. I was only used the initial build part. all good thanks!

    mOOnpunk that's strange I looked everywhere for something like this... I hate to sound like a broken record but the website: forums, store, online doc etc.. have some of the worst search tools and make it extremely difficult to find things... its far worse than the old scirra.com - I can't tell you the number of times I've been burned or wasted time because the search is so bad.

  • dop2000 I like that.. and I have it working great! and thanks again!

  • I think I found a bug in the loop. It was looping for the Width and Height of the entire tilemap in pixels, not cells... once I changed it to 8x4 it ran super fast. The width/height was 775x405 so I think that's why it was taking so long!

  • dop2000 nevermind, I think I found a bug in the loop. It was looping for the Width and Height of the entire tilemap in pixels, not cells..

    thanks, your capx helped me figure that out!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • actually dop2000 yours has no delay when refreshing the tilemap - is maybe because data comes from an Array opposed to AJAX>DDict? there is a very noticeable 1-2 second delay when refreshing the tilemap - not to mention the entire game freezes while its delayed.

    see code here: construct.net/out

  • so one thing about this way of doing it. When you refresh the entire tilemap it takes a few seconds to loop through everything. When placed in a game there's quite a delay. Did you experience this as well? It's something I could hide with a "loading.." icon but it just seems strange since no other calculation I do ever take that long and the game freezes while its happening...

  • dop2000 thanks that's basically what mekonbekon showed me in that linked thread so I'm all set thanks! I knew there was a better way! thanks forum!

  • this is simply amazing. you are basically doing my work for me!

    very much appreciate the share!

    you should make an addon from this and sell it in the store!

  • oh wow.. I didn't know it was called that (bitmasking - just updated the title of this thread), but it makes sense.. this seems to be on the path I need. thanks for this mekonbekon! now if I can just wrap my head around it!

  • when you say "skip ahead" it sounds like you are saying events have already happened. But essentially with timescale you are just speeding everything up.

    You can set the timescale for a specific object using System>Set Object Timescale if that helps.

  • another way is to just make a bool called NotFirstTime = false.

    then at the bottom of your sheet set it to true.

    then do OnCreated AND NotFirstTime or OnDestroyed AND NotFirstTime

  • I'm thinking I would start scanning each 'filled' block from left to right. Then only check the adjacent blocks to the right while disregarding diagonals. Or something like that.

    I honestly don't know if this brute force way of checking every one by one (and then every one around it) is the best way to go.

  • dop2000 no no, I didn't mean that.. I meant set the correct tile, as in a NORTH, SOUTH, SE etc.. piece.

    you have to look at the tileset to understand.

    I want the first picture to become the second picture..

    btw, this took a long time to make the image by hand cut & pasting the tiles manually and figuring out which one goes where. If there was ever a good process to automate it would be this one!!