Score in Platformer

thompsonjm22thompsonjm22 Member Posts: 15
edited February 2012 in Working with GS (Mac)
I'm having an issue with keeping my score on the screen in the platformer. I have my score in the top left of the screen and I control the camera through the player. Is there a way to have my score scroll with my players movements even though I constrain the camera to the player? Thanks!

Comments

  • TwilightHunterTwilightHunter Member Posts: 146
    Yup! In the scene layers, make a new layer and call it Score or HUD or something, and uncheck the "scrollable" box next to it. Put the score actor in this layer and BOOM. There ya go ;D
  • thompsonjm22thompsonjm22 Member Posts: 15
    That worked! Thanks much!
  • TwilightHunterTwilightHunter Member Posts: 146
    No problem!
  • TwilightHunterTwilightHunter Member Posts: 146
    Make sure when you have a scene that's bigger than 480/320 (if on iphone or whatever) if you change the screen's starting location, which you probably won't really ever do. The score and such always has to be placed in the bottom left of the scene. I suggest putting a "change Attribute: self.positionX and self.positionY" on the score actor so it's always in the same part of the screen in all of your scenes.
Sign In or Register to comment.