swift - Increase speed of objects over time
问题 I'm looking for a way to increase the pace of my game the longer you play it, I would like to achieve this by increasing the frequency of obstacles generated either after a certain time i.e. every 30 seconds or preferably after 10 objects (trees), have been generated so the longer you play the harder it gets. This is my current set up, I use repeatActionForever how could I change this to something like repeatAction10Times with a different delay variable for each loop? //in didMoveToView