shaking

sdsmith64sdsmith64 Member Posts: 221
edited November -1 in Working with GS (Mac)
how do I make a actor shake?
I have an actor that needs to shake for 1 second after its clicked on. not the camera the actor.
thanks.

Comments

  • JustsomedesignerJustsomedesigner Member Posts: 28
    You could Animate it from left to right to left etc....
  • sdsmith64sdsmith64 Member Posts: 221
    any way to do it with out animation?
  • JustsomedesignerJustsomedesigner Member Posts: 28
    You could probably make it glitch in some way and make it shake :P
    But i think animating it would b the way ( one pic is more to the right , then the next is more to the left etc.)
  • JustsomedesignerJustsomedesigner Member Posts: 28
    And put a timer behavior under the animate behavior with ''after'' 1 sec and a destroy behavior in that
  • hman360hman360 Member Posts: 590
    You could make it move to to self.position.x-5 for .2 of a second and then self.position.x+5 for .2 of a second multiple times.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Check out Tshirtbooth's excellent site: http://gshelper.com/ Almost certain his shaking demo is on there somewhere.... it's somewhere...

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

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    I think the following is based upon Tshirtbooth's orbiting demo. Its orbiting around a very small area. But it gives the impression of shaking. The 240 and 160 are just scene coordinates. Change them to whatever you want.

    When Shake = true
    ….Timer: Every .025 seconds
    ……..Change Attribute: self.Position.X To: 4*cos( self.Time *1000%360)+240
    ……..Change Attribute: self.Position.Y To: 1*sin(self.Time*1000%360)+160
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi RT, I seem to rememberTSB's shaking demo being somewhat simpler than that; moving x and y coords in .1 second, one after the other... your example seems impressive tho'! :-)

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

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    gyroscope said:
    Hi RT, I seem to rememberTSB's shaking demo being somewhat simpler than that; moving x and y coords in .1 second, one after the other... your example seems impressive tho'! :-)

    Yes -- this is a total copy and paste job. It think it was from a demo of how to make an object orbit (by Tshirtbooth). I used it for shaking because it had a kind of 'orbital sander' action to it. It was more circular than say a vibration. So, basically I reset the parameters so that it 'orbits' in a very small area (like 3 or 4 pixels).

    RThurman
  • svnsvn Member Posts: 445
    What about alternating rotations? Rotate left for 0.02 sec, then rotate right for 0.02 sec, and repeat. Or is that not possible?
  • Macca_McGillMacca_McGill Member, PRO Posts: 108
    As mentioned t-shirt booth has a tutorial on making the screen shake. Im sure this can be adjusted slightly to make an actor appear to shake instead...

Sign In or Register to comment.