how to make this :when a animation end,auto goto the next sence

lol0ttelol0tte Member Posts: 54
edited November -1 in Working with GS (Mac)
how to make this :when a animation end,auto goto the next sence
i don't what to use the timer,because use timer contorl animation is not exact.
thanks~

Comments

  • NeverbeNeverbe Member Posts: 117
    Use a timer.
    See the duration of the animation then with the timer set

    After (animation duration)
    Change Scene
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Either a Timer or a Rule

    Rule
    When self.Image = lastImageInSequence.png
    -----Change Scene

    Make lastImageInSequence.png the name of the last image in the sequence. You'll have to add a dummy last frame...

    Or combine the two:

    Rule
    When self.Image = lastImageInSequence.png
    -----Timer After 0.1 seconds run to completion
    ----------Change Scene
  • skippyskippy Member Posts: 106
    Hey sorry to intrude here i didn't realise you could use images in animations to trigger actions fmg and what do you mean by dummy last frame if you could explain ? Thanks
  • lol0ttelol0tte Member Posts: 54
    thanks firemaplegames
  • quantumsheepquantumsheep Member Posts: 8,188
    skippy said:
    Hey sorry to intrude here i didn't realise you could use images in animations to trigger actions fmg and what do you mean by dummy last frame if you could explain ? Thanks

    He means:

    Make a blank image and call it "lastImageInSequence.png"

    That way, you can put this dummy image into any animation, and using the rule FMG has outlined, when the animation reaches this image it will do something.

    Make sense?

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • EminemEminem Member Posts: 667
    or time the animation and put a timer and drag a change scene behaviour

    cheers,
  • millerbrother1millerbrother1 Member Posts: 108
    This is a very helpful post. I was wondering the same thing. The LastImageInSequence.png approach is probably better because is ensures the animation has completed prior to moving forward.

    CJM
  • skippyskippy Member Posts: 106
    @ QS thank you, yes it makes sense now :)
    also i agree with millerbrother1, "helpful post"
    Thanks to lol0tte
    cheers
Sign In or Register to comment.