localFlipbook derived from ygNode | Example | Source | Header |
Messages |
duration | float | set the duration of the sequence |
active | bool | set active mode |
on | [bool] | turn on |
off | turn off | |
start | start the sequence | |
stop | stop the sequence |
Comments |
constructor localFlipbook
method reset
1 reset the first frame flag
2 set duration to 1.0
3 set active to false
method message
1 set the duration of the sequence
2 set active mode
3 turn on
4 turn off
5 start the sequence
6 stop the sequence
method start
1 if not active
1.1 set active to true
1.2 set start time
1.3 update the distributed active flag
method stop
1 if active then set active to false
1.1 update the distributed active flag
method app
1 if first frame then select first item
2 if active
2.1 divide elapsed time by duration
2.2 convert to integer
2.3 set selector