Rotating Question

GlomGlom Member Posts: 59
edited December 2011 in Working with GS (Mac)
Hi all, I'm currently creating a game where you play as a ball and when you press left or right on your keyboard the ball moves that way. This works great but what I want is for the ball to work with rotating. As in when I press right it turns clockwise like a ball should or if it rolls down a ledge it rolls that way too. I've tried a few different things with the rotate behaviors but can't quite get it and sometimes the ball flys around and lands strangely.

Anyone have any idea about this? Thanks!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    change the collision shape under the actors physics attributes to circle and that will take care of it rolling down hills and such
    make sure fixed rotation is not checked

    then having a rotate clockwise behavior when key right is pressed and a rotate counter clockwise behavior when key left is pressed should take care of that
  • GlomGlom Member Posts: 59
    Thanks John! This was pretty much what I was doing to try to get it to work but it ended up being a relative to: problem. They were set to actor instead of scene, now it seems to work really well!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    glad you got it working :)
Sign In or Register to comment.