Please help!

JamwithnoJamwithno Member Posts: 312
edited November -1 in Working with GS (Mac)
I want to a character to stay on top of a actor even when it is moving how do i do that?

Comments

  • JamwithnoJamwithno Member Posts: 312
    Bump
  • svnsvn Member Posts: 445
    Create two Game attributes. Call them (whatever)X and (whatever)Y.
    Create a new actor. In it, create two Change Attribute behaviors. In one, change self.Position.X to "game.(whatever)X +( the amount of pixels to get to one edge of the actor you want to be on[This is not a title! Really add the number of pixels!]) and in the other, change self.Position.Y to game.(whatever)Y.
    Now, place that character on the edge of the aforementioned actor. Now, copy it and place the copy on the other edge of the actor. DO NOT click on the acto in the Actor Tab. Instead, click on the copy in the game screen. You will be asked to unlock the actor. Do it. Now, edit the Change Attribute for self.Position.X. Change the plus to a minus. This should do the trick.
  • JamwithnoJamwithno Member Posts: 312
    thank you so much that is exactly what i needed.
Sign In or Register to comment.