Created
February 1, 2017 14:23
-
-
Save ryanbru0803/f4c472b93db06b70dd75c2151fa256cb to your computer and use it in GitHub Desktop.
Start or stop wiggle at specific time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Apply the following expression to a property to wiggle it beginning at time 2 seconds: | |
| timeToStart = 2; | |
| if (time > timeToStart){ | |
| wiggle(3,25); | |
| }else{ | |
| value; | |
| } | |
| //Apply the following expression to a property to stop wiggling it at time 4 seconds: | |
| timeToStop = 4; | |
| if (time > timeToStop){ | |
| value; | |
| }else{ | |
| wiggle(3,25); | |
| } | |
| //Apply the following expression to a property to start wiggling it at time 2 seconds and stop wiggling it at time 4 seconds: | |
| timeToStart = 2; | |
| timeToStop = 4; | |
| if ((time > timeToStart) && (time < timeToStop)){ | |
| wiggle(3,25); | |
| }else{ | |
| value; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment