Dynamic tile picking (For level editors & dynamic terrain)

Show us your completed creations made in Construct 2

Post » Thu Mar 12, 2015 10:16 pm

Image

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!
B
9
S
2
Posts: 28
Reputation: 649

Post » Fri Mar 13, 2015 4:07 am

This is fantastic, thanks for sharing!
Twitter: https://twitter.com/pudgyplatypus

Learn to make a clicker game for cheap!
https://www.scirra.com/store/games-with ... e-game-666

Try out Pixel Golf on the Scirra Arcade!
https://www.scirra.com/arcade/sports-ga ... el-golf-67

Pudgy Platypus Games website!
www.pudgyplatypus.com
B
59
S
20
G
5
Posts: 212
Reputation: 7,390


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest