how i do a perfect constrain?

guillefaceguilleface Member Posts: 1,014
edited December 2011 in Working with GS (Mac)
once you see the picture you can see when i am moving the scope , the red circle does not stay always in the middle, i need to fix this because is so hard to do a head shot like this. in the iPad is better but on my iPhone 2nd g is bad, the game don't run slow on it by the way.

https://dl-web.dropbox.com/get/Photos/Sample Album/Photo Dec 15, 3 03 03 PM.jpg?w=45d8df95

Comments

  • guillefaceguilleface Member Posts: 1,014
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Your saying that you get a slight amount of lag and then it eventually moves to the center of the crosshairs? Or it just stays off the center after you finish moving? Of you never want it to move off, then why not just change the crosshair image to include the red dot?
  • calvin9403calvin9403 Member Posts: 3,186
    humm just constrain the self position to the target position(remember to do it in the scene)

    and also maybe because your red spot and the target does not have the same middle spot?

    Calvin
  • guillefaceguilleface Member Posts: 1,014
    the actor i am moving is the scope but if i make it like when enemy collides with scope to destroy the enemy,it will be destroyed even when is touching in the edge of the scope, but with a red circle rally small is better but , so i have the red circle to constrain to scope position ,x and y to the middle, but say i am moving the scope to the right the red circle follow the scope like in the picture and never in the middle like i think it suppose to do.
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    If you constrain the x,y of the circle to the x,y of the crosshairs, you should have no problem at all. There may be a very slight amount of lag, but it would still go to the center. Are your two actors maybe on different layers? One scrollable and the other not?
  • guillefaceguilleface Member Posts: 1,014
    yup i checked and they are on the same layer, is weird because scene level 1 i made a copy and renamed level2, on level 1 is where i don't get the perfect constrain but is not so bad on the iPad, but in the iPod sometimes i get the red circle outside the scope lol, so i just notice on level 2 i don't get this problem. weird ha.
Sign In or Register to comment.