How do I count tiles on a Tilemap

Get help using Construct 2

Post » Sat Mar 22, 2014 7:24 am

Hi

I have a Tilemap with red and blue tiles. how can i count how many blue tiles are on the map?

thx Mangudai
B
6
S
2
G
1
Posts: 7
Reputation: 1,007

Post » Sun Apr 20, 2014 2:07 pm

You can use two variable for a counter and a "System > for each" loop, and check every tile on your layout that is blue or red (for example you can check the current animationFrame). Or if the red tile and the blue tiles are different object/sprite, you can use two "for each" loop to count each object type.
B
10
S
3
G
1
Posts: 16
Reputation: 776


Return to How do I....?

Who is online

Users browsing this forum: stevenode, Yahoo [Bot] and 8 guests