Dynamic tile picking (For level editors & dynamic terrain)

0 favourites
  • 2 posts
From the Asset Store
Best car suspension with spring effect and very cool terrain generation.
  • Over the past few days, I put together this little engine for automatically picking appropriate tiles out of a tileset! Included are functions that load / save a tilemap to an array, and perform bitwise functions on the array in order to choose the appropriate tile for every space. I'm not sure if this is the right forum to put this, but if it's not, feel free to move it!

    This system is perfect for creating your own level editor and saving time on fitting all the right tiles together - you can also use it to make really good looking randomly generated terrain, or for adding and removing tiles in real time for a really good looking "mining" effect!

    You can mess with the example here! http://battlestudio.com/TilePick/

    And you can download the .capx here! I commented the code the best I could to explain how it does everything: http://battlestudio.com/TilePick/TileArray.capx

    If you'd like to see this expanded or would like to see more of these kinds of examples from me, please consider checking out my Patreon: https://www.patreon.com/BattleJenkins - one of the rewards nets you an hour of my time every month, if you wanted me to help you figure out other Construct 2 tricks!

    Feel free to use this code as you like! You don't need to credit me, but it'd be really appreciated! (Just don't take the credit for yourself if you repost this anywhere!)

    I hope this comes in handy!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is fantastic, thanks for sharing!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)