Simple Rotate in direction question

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'm having a brain lapse here.

I want my actor to face in the direction in which it's traveling. The actor's image is drawn facing the right, but I can't figure out what behavior makes it face the direction that it's traveling.

Thanks all.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hey there,

    If your using a keyboard or something, just do this:

    Rules: When up key is pressed, change image to 'facing up'

    and then add all your moving stuff into that.
    That should work.
  • old_kipperold_kipper Member Posts: 1,420
    try constrain self.rotation to vector to Angle (self.motion.linearvelocity x,self.motion.linearvelocity. y)

    hope that helps

    kipper
  • DrGlickertDrGlickert Member Posts: 1,135
    old_kipper said:
    try constrain self.rotation to vector to Angle (self.motion.linearvelocity x,self.motion.linearvelocity. y)

    hope that helps

    kipper

    That was it! Thanks Old_Kipper!
Sign In or Register to comment.