How can I make an actor shake/wobble?

swalkerswalker Member Posts: 29
edited May 2012 in Working with GS (Mac)
It needs to remain in place, but when tapped or dragged (on screen touch) it should wobble around, left to right, at the point it is fixed at.

Answers

  • Benjamin_m5Benjamin_m5 Member Posts: 646
    I think someone other asked that one or two weeks ago. But don't know who. As far as i know @tshirtbooth made a little tutorial/template for free but you should ask him :)
    ---
    Benjamin
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • swalkerswalker Member Posts: 29
    Thanks, but this is more about shaking the entire scene. Is it possible to apply shake movements to individual actors, so if I touch an Actor it will shake?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2012
    @swalker Sorry! I should have read more carefully. I saw "shake" and remembered that video. I would think you could shake an actor by interpolating its x and y positions very slightly for a very short amount of time. I think someone (maybe @tshirtbooth) did make a demo or video about that.

    If you're needing it to wobble when dragged, I think you'll have to constrain a second actor on top of it because otherwise the wobble movement will interfere with the dragging.

    Another way would be to animate the shaking/wobbling.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I don't remember who made this demo, but I replaced all of the y attributes with x attributes. It's a nice example of a shaking actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • LeanneLeanne Member Posts: 168
    I do it by importing to different images, e.g. a happy face and the same face rotated slightly, then i use the animate behaviour.

    when face is touched, animate (alternate animation images between the two).

    works for me.
Sign In or Register to comment.