How do I layout my Health Bar properly?

FatalCrestFatalCrest Member Posts: 113
edited November -1 in Working with GS (Mac)
How do I have my Health Bar following the camera properly? Always in place not being covered by any of
my enemy actors, platforms, etc.

I'm having problems with this. -.-

Comments

  • iPhoneDevForMeiPhoneDevForMe Member Posts: 362
    You will need to use layers to implement a HUD (or any other items) that stay in place as the camera moves.

    Here is the wiki:
    http://gamesalad.com/wiki/how_tos:gsc_static-hud

    Try looking for some samples as well! Lot's of good content to work with!
  • FatalCrestFatalCrest Member Posts: 113
    Okay :3
  • iPhoneDevForMeiPhoneDevForMe Member Posts: 362
    Here is the link to a sample project!
    http://gamesalad.com/game/play/53407

    Basically you click the scene tab of the inspector window. You will see a layer called "Background". Down in the left hand bottom corner, click the plus sign. This will create a new layer. Next to that layer, uncheck "Scrollable".

    Any items that you wish to stay in your camera view, just place them in this layer! You can drag and drop objects between the layers if you place an object in the wrong layer!

    Let me know if you have any problems, ill be up all night!

    -Kyle
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Wow! Thanks! Had no idea about this!
  • FatalCrestFatalCrest Member Posts: 113
    Nice going iPhoneDevForMe! I never knew about being able to create a layer! This will help me a lot
    in many of my projects. Thanks! :3
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Yeah, I didn't know either... I mucked around with this for a few minutes last night and totally tidied up my play area :)
Sign In or Register to comment.