i'm building a game for which i the gravity as:
self.physicsworld.gravity = CGVectorMake(gravityX , gravity-Y);
i want to change the forces acting on the sprite node with time.
since i'm a newbie, i'm not able to code a loop(s) so that the gravity changes over time thereby changing the difficulty of the game. if i want the float variable gravityX to increment by 0.5 every 5 seconds what should be the code implemented.
the main problem i'm facing with using the FOR LOOP here is in the CONDITION; I don't know how to make the computer understand actual time since the game started.