How do I rotate an actor so that it points at another actor that is moving?

jckmcgrawjckmcgraw Member Posts: 647
edited January 2012 in Working with GS (Mac)
Hello,

I am looking for a way to have an actor rotate to face a different actor (the main character). This way it can shoot stuff at it. I'm sure it is a quick fix, but I can't quite seem to get it.

Thanks in advanced,
Jack McGraw

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Hey There,

    Open GameSalad, Click New And then Search for Stay Locked on Target
    Its Demo I made for a moving actor to stay pointed at specific point at all times. You should be able to rework it to your needs.
  • jckmcgrawjckmcgraw Member Posts: 647
    @tenrdrmer For some reason, there aren't any templates popping up besides the main ones. Do you have a link that I can go to to download?

    Thanks
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well thats weird. I'll go ahead and upload the project file to media fire if I can find it.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well My GameSalad would not bring it up either. I made you some thing new. You'll notice all of the little red "guns" constantly track the blue players positions as he randomly moves around the screen.
    http://www.mediafire.com/?5a9f5w947sp7cdq

    Hope it helps
  • jckmcgrawjckmcgraw Member Posts: 647
    This is exactly what I was looking for!

    Thanks,
    Jack McGraw
Sign In or Register to comment.