Before you say "Global Variables" hear me out.
My game is utilizing an Angry Birds like interface, each level I'd like to make a part where you collect 20 coins per level and you get a gold completion for that level. I have it figured out on how to make the level finish using arrays, but for the coins I've gave the object an instance variable but it doesn't seem to add towards the amount.
It only seems that the global variable idea works, but I can't uncheck "static" because I want the player to get all 20 coins every level playthrough instead of get a few, and get another few in another level and it messes up the whole thing.
So to summarize, how do I make it to where the player collects a fixed amount of coins in each level?
Thanks for reading!