Please help

dee99dee99 Member Posts: 100
edited November -1 in Working with GS (Mac)
Ok, so i want to make an actor follow my touch when it is pressed and another actor to rotate to follow this touch, how would I do this?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    In the actor you want to follow your touch drag constrain attribute behavior and constrain its position to touch1. Its under device attributes.
  • dee99dee99 Member Posts: 100
    Done, but how do i get that other actor to point at it?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Click on support at the top of this page and check out the wiki under movement. If you just have it constrain or accelerate towards it will not work if your scene is bigger than 480x320. The wiki explains how to fix this.

    For the rotate - Use rotate to and put the touch coordinates in (again look at the wiki and apply the follow mouse idea to this as well if the scene is bigger than the screen)
Sign In or Register to comment.