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!
maybe make a variable for each time a tile is taken then if taken lose one.
You can use a FOR ELEMENT OF VALUE block to determine how many blocks are in a game!
This should count how many blocks are in a Tilemap!
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)
Oooh! Thank you! This seriously helps!
Never knew about this method! Guess This helps me with something to!