Ok I'll start at the beginning:
When the user swipes up on the screen, the character (a uiimageview) jumps. The idea of the game is to make him jump from block to block to prevent him from falling off the bottom of the screen. To achieve this, 'gravity' needs to be applied (just an addition of +15 to his center.y value) if he is not in the process of jumping or resting on a block. My problem is that 'gravity' must not be applied until after the first swipe, so that the game can commence without him disappearing, and I have done this by detecting if firstSwipe == true in my gameLoop. I thought that if I set firstSwipe = true in the jump method, the gravity would only become active if no other movement was happening, but as the gameLoop is called 30 times a second, the character falls before he jumps.
If I still haven't made it clear (which is a big possibility), I will post my code to see if that makes more sense than my ramblings.
One other quick point - how do I access my blocks in my arrays blockArray and Stopped blocks? With a 'for (block in blockArray, stoppedBlocks)' method?
Thanks a lot for all your help
Cam