New answers tagged tiles
First, you need to find which blocks should move move, given a particular clicked cell. You'll probably want to use a floodfill algorithm of some sort for that. Once you have your list of tiles, move them all one after the other before doing anything else. The way I would do that would be to change the move function so that it takes another parameter ...
If you're starting with a tileset with regular dimensions and layout (as in your example), and your goal is to create tile maps in Tiled, there is no need to use third-party tools. Tiled supports these natively and easily. There are a few tutorials on using Tiled like this one, but it's very simple: Create a new map, choose its dimensions and tile size ...
Go to piskelapp.com , then choose 'Create new Piskel'. Click the menu on the right, and choose import your own image; select it, then put the number of size of each tile. After you are done editing, choose Export in separate images. Done!
Top 50 recent answers are included