TweenMax Timer

A little dirty trick I found ( I’m sure already found by others ) using TweenMax class.

After reading more carefully the documentation I found this:

delayedCall()

[static] Provides a simple way to call a function after a set amount of time (or frames).
Example: TweenMax.delayedCall(delay:5, onComplete: some_function)
Advertisements

One thought on “TweenMax Timer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s