Please Help Actor Animation

creativeappscreativeapps Member Posts: 1,770
edited November -1 in Working with GS (Mac)
I have 2 actors. Actor A and Actor B. there are few animation in Actor B. And I want to stop that animation when Actor A touch the Actor B. how to I do that? Please help

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make a boolean attribute called animationstop and set it to false.

    In actor b put all your animations rules and stuff in a rule that says when attribute animationstop is false

    have another rule in actor b when actor collides with actor a
    -change attribute animation stop to true.

    At any time you want the animations to start up again, change animationstop to false

    cheers
  • creativeappscreativeapps Member Posts: 1,770
    I did changes as per your notes its not going to work please check image wheres my mistake. Thanks

    http://oi55.tinypic.com/d5kdz.jpg
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You didnt add the change attribute behaviors or set the rule up the rule right. watch these videos so you can become familiar with gamesalad

    http://www.youtube.com/user/GameSaladCookbook/

    But for your question the top rule with the animation behavior is currect, but if you want a continous animation uncheck restor original image

    For the rule at the bottom, take out the bottom part of the rule when attribute is true, so the rule only says when actor overlaps or collides with solid platform

    drag a change attribute behavior into that rule and change attribute animation stop to true

    cheers
  • creativeappscreativeapps Member Posts: 1,770
    thanks a lot for quick reply. I got the solution with your second post. Thanks once again.
Sign In or Register to comment.