An open API service indexing awesome lists of open source software.

https://github.com/remirobert/rrlooptimerupdate

Manage timer in update loop SKScene on SpriteKit.
https://github.com/remirobert/rrlooptimerupdate

Last synced: 2 months ago
JSON representation

Manage timer in update loop SKScene on SpriteKit.

Awesome Lists containing this project

README

          

RRLoopTimerUpdate
=================

Manage timer in update loop SKScene on SpriteKit.

Overview
========

```Objective-C

#import

@interface RRLoopTimerUpdate : NSObject

@property (nonatomic, assign) NSTimeInterval rangeTimer;

- (instancetype) init :(NSTimeInterval)currentTime;
- (void) freezeTimer;
- (void) restartTimer;

@end

````

![Alt text](https://raw.githubusercontent.com/remirobert/RRLoopTimerUpdate/master/ProjectTest/record.gif "Project Test")

>###*freezeTimer*###
> Used to set the timer to keep the current timer value in the update loop of SKScene.

>###*restartTimer*###
> Call this function just before presenting the SKScene for update the timer loop.

*For more information refer to the example project.*