Seems like this should be about the simplest thing you could do with an int but I cant seem to find anything showing how to do it. Tried google but I get a million hits all of which are way more in depth than what im trying to understand.
What I want to do is have an integer and as something happens (button press, image moved, whatever) I want to add 1 to this integer and have a separate method, when its called, check the integer and preform one of several actions depending on the value.
I know how to do all of this except add 1 to the int?
I know this must be a crazy stupid question for you guys, anybody care to throw me a bone?
Declare int index in .h file
Now on click of button:
Any other method image moved then
Now perform action like this: