Hi y’all!
So… I need help. I’m making this territorial game where at the end of the game, the amount of territory the player has is counted, and the player with the most territory wins! The only problem… I don’t know how to count the amount of specified tiles in a tilemap!
Pls help… 
2 Likes
maybe make a variable for each time a tile is taken then if taken lose one.
1 Like
You can use a FOR ELEMENT OF VALUE block to determine how many blocks are in a game!
For example:
This should count how many blocks are in a Tilemap!
1 Like
Ah this is pretty easy! You take the length of the array of all of that tile. The ‘Array of all _ tiles’ block should be in the tilemap catagory, and the ‘length of array’ should be in the array catagory. (Explaining because i’m too lazy to make it and screenshot lol)
1 Like
Oooh! Thank you! This seriously helps!
2 Likes
Never knew about this method! Guess This helps me with something to!
2 Likes