I am trying to create a strategy game with many regions for the player to take control over.
I represented each region with a sprite with Instance variables "population" and "owner". The "owner" variable basically keeps track whether the region is the players or not.
A small text box shows the total population of controlled regions. It works by checking whether the owner variable is one or not of different regions.
The problem I face is with higher number regions and with very poor technique I am using, the event sheet will fill up with various permutations of different regions.
If someone would kindly instruct me how to use some array or such to check whether instance variable "owner" is equal to 1 for all the sprites and add/display the population of the same sprites.
dropbox.com/s/ugb6dex6mr3dwha/regionswitchingplayers.capx