Rules with velocity / acceleration?

rladbsghrladbsgh Member Posts: 11
edited January 2012 in Working with GS (Mac)
So I'm trying to make a rule saying "if the velocity of this is below 500, then change the image to blah blah".

Is there any way to do that? Do I need an attribute that measures acceleration / velocity?

Comments

  • POMPOM Member Posts: 2,599
    edited January 2012
    Hey , to capture an actors velocity , use magnitude:
    magnitude( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )

    So to do what you want i suggest to create a self.attribute - Index - call it "capture velocity" - give it the value of 500
    Now make a rule :
    when "self.capture velocity" IS GRATER THEN magnitude( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
    Change the image to blah blah :D

    Roy.
Sign In or Register to comment.