Need Help Keeping UI elements on the screen while the screen slides left or right

GAMEINTERNGAMEINTERN PRO Posts: 56
edited May 2012 in Working with GS (Mac)
Hello,

I will try my best to explain...

My user interface slides left and right however I still want some of actors and certain text to remain in place.

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    @CGOStudios … what you need is a HUD (Heads-Up Display)
    http://en.wikipedia.org/wiki/HUD_(video_gaming)

    and, Weswog's video may help:



    Notes:
    1. HUD items should be placed in the scene within the original sceneArea
    …(480x320 for iPhone)
    2. in Scene Layers to change a layer's name … highlight and click enter on keyboard
    3. a HUD layer (any un-scrollable layer) has to be above all other layers in the list of layers
    …or it will be hidden behind the background

    image MH

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make a new layer, uncheck scrollable, and put all those actors on that layer.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Thanks for the response but thats not working either.

  • GAMEINTERNGAMEINTERN PRO Posts: 56
    ALso when i uncheck it removes the actor from the scene.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited May 2012
    It does work, make sure the actors are positioned inside the original square that represents the camera in the scene, and make sure the layer is above the background and everything.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Sorry, i mean that i am prob. doing something wrong.
    I will keep at it. I am still learning.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Hello,

    I followed this but my Actor keep disappearing when i uncheck scrollable.
    I am not sure what i am doing wrong or what i am over looking.

    My Hud Layer is above the background Layer.
    I also have a Cam Layer which is based on the Tshirtbooth Tut when sliding the screen on the X axis. and the Drag Layer.

    To be fare I was able to constrain the Actor to the Cam. but it was a bit shaky when dragged.

  • GAMEINTERNGAMEINTERN PRO Posts: 56
    @MotherHoose @JohnPapiomitis Got it working! thanks all.

    The part i was missing was placing it :1. HUD items should be placed in the scene within the original sceneArea
    …(480x320 for iPhone)

    I am using a Ipad size 2304 x 1024 so I needed to put the Actor at 768.
    For some reason i didn't get that then i was like...oh.

    Thanks again! @MotherHoose @JohnPapiomitis
Sign In or Register to comment.