How to create health that follows actor

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
I've got the health or 3 health units set up for my actor with the graphics and all, but how do you make them follow your actor as they progress through the level? Do you add a camera follow to it?

Comments

  • JGary321JGary321 Member Posts: 1,246
    Constrain their X/Y to that of the actor you want them to follow. If you want them to float above you can have the Y offset a little. Make sure you have it so it's based on ACTOR not SCENE.
  • butterbeanbutterbean Member Posts: 4,315
    Basically I just want the 3 health hearts to stay in the top left corner of the screen as the player is moving, do I still use constrain attribute to player's position? I tried that and it went accross the top of the screen
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    create a non scrollable layer and place the health object in that layer. i think it is outlined pretty well in the wiki
  • butterbeanbutterbean Member Posts: 4,315
    Thanks Scitunes :)
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    no problem
Sign In or Register to comment.