Play Animation

creativeappscreativeapps Member Posts: 1,770
edited November -1 in Working with GS (Mac)
I want to play animation after every 2-3 seconds. How to do that? And I want to do reverse animation also.

For Example: Animation Frames
1.png
2.png
3.png
4.png
4.png
3.png
2.png
1.png

2-3 seconds hold and again
1.png
2.png
3.png
4.png
4.png
3.png
2.png
1.png

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi creativeapps, Timers directly with Animation don't seem to get along, in my experience. Try experimenting with the following:

    Make a boolean attribute called AnimSwitch, set to true

    In Rules, put:

    When attribute AnimSwitch is true
    animation behaviour, with 1 to 4 frames put in as well as 4 to 1
    Timer
    after ----2 or 3 seconds + your animation time----
    Change attribute AnimSwitch to false

    When attribute AnimSwitch is false
    animation behaviour, same 8 frames
    Timer
    after ----2 or 3 seconds + your animation time----
    Change attribute AnimSwitch to true

    Hope that helps you out.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • YarikYarik Member Posts: 15
    timer every 3 or 4 seconds
    play animation (Loop false !!!)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Yarik, that won't work, for the record. The Animation Behavior in a Timer doesn't work.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • YarikYarik Member Posts: 15
    oh yeah =)

    timer every 3 {
    timer after 0.01 ( Run to completed TRUE ) { play animation ( Loop FALSE ) }
    }
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Ok, thanks, learned that now.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.