Multiple TileMap Costumes?

Discussion and feedback on Construct 2

Post » Wed Mar 25, 2015 4:50 am

Construct 2 allows multiple different animations for a single object (so I can have a generic NPC object and have lots of different people in it), so could it allow multiple TileMap costumes in the future? If that happens, it would be possible to build all levels in 1 layout by accessing a different tilemap costume for every level. It would increase code efficiency dramatically.
B
5
S
1
Posts: 31
Reputation: 439

Post » Wed Mar 25, 2015 5:46 am

+1
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Sun Jan 24, 2016 4:42 pm

You can, and i've done it in my project.

Here is how to do it:

1: Get at least 2 costumes, and put them into frames on a sprite.

2: Now, code it, say if you wanted a character to change it's look for 3 seconds when you press the spacebar, here is the code:

Image

3: But in your case, your program would have to pick it at random using numbers, and variables, and it's just a whole lot more complicated.

Hope it helps!
B
3
Posts: 1
Reputation: 177


Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish and 5 guests