tilemap

Discussion and feedback on Construct 2

Post » Fri Jul 21, 2017 8:59 am

Hey, i got some nice assets from open opengameart.org but sadly folder doesn't contain sheet.What would you do in my position to open them in tilemap.Thank you.

Image
B
3
Posts: 6
Reputation: 194

Post » Fri Jul 21, 2017 9:37 am

Easiest way is to use a 3rd party tool like GIMP, Photoshop or any other graphics editor that allows you to import multiple images into a single file or copy and paste from from one open file to another, stitch together and export as a png.
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Wed Jul 26, 2017 2:08 pm

More detailed reply:
tilemaps are a grid of small images as you have obtained above.
To make a png file to use as the image for your tilemap, first you must decide what grid to use. I recommend since you have 11 tiles, doing a 3 along and 4 down tilemap, with each tiles resolution taken into account.
example, if your tiles are each 128*128 square pixels, your tilemap will be 128 * 3 across and 128 * 4 down.
The tile map selects tiles from left to right, then down 1, then left to right again and so on. So you want to place your tiles in the png file as such:
1 2 3
4 5 6
7 8 9
10 11

once you made your 3 * 4 tilemap saved as a png, just create your tilemap object and load that png file into it. remember to specify the dimensions of your tilemap grid (3,4) and the resolution of your tiles.
B
4
Posts: 8
Reputation: 277


Return to Construct 2 General

Who is online

Users browsing this forum: newt, vikuserro and 7 guests