Need help! 2 questions

ClockClock Member Posts: 308
edited November -1 in Working with GS (Mac)
i have 2 images and they are same size. how to snap one to the center of another one?

How to make an actor follow another actor?

Comments

  • crazyfishdevcrazyfishdev Member Posts: 283
    Im lost... If they are both the same size and in the same place then you would only see the top one... is that what you want?
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Question 1:
    Change Attribute: self.Position.X To: actor2.Position.X
    Change Attribute: self.Position.Y To: actor2.Position.Y

    Question 2:
    Constrain Attribute: self.Position.X To: actor2.Position.X
    Constrain Attribute: self.Position.Y To: actor2.Position.Y

    Hope that helps!
  • ClockClock Member Posts: 308
    RThurman said:
    Question 1:
    Change Attribute: self.Position.X To: actor2.Position.X
    Change Attribute: self.Position.Y To: actor2.Position.Y

    Question 2:
    Constrain Attribute: self.Position.X To: actor2.Position.X
    Constrain Attribute: self.Position.Y To: actor2.Position.Y

    Hope that helps!

    i already tried that one, but didnt work.
  • crazyfishdevcrazyfishdev Member Posts: 283
    Would you like if I made an example?
  • crazyfishdevcrazyfishdev Member Posts: 283
    here is the demo for the first one
    http://dl.dropbox.com/u/8505306/demo.zip
  • ClockClock Member Posts: 308
    oh wow thank you so much!~ :)

    PS: i found theres problem if i use "keyboard" instead of "touch"
  • crazyfishdevcrazyfishdev Member Posts: 283
    Yea you would need to change the touch to something else. I can make another example if you want but you can just the movement for the main character in the cave template for the movement of the character.
Sign In or Register to comment.