Keeping score on the screen

Hey all, Im creating a game where the character is falling off the screen. He is controlling the camera, but once he gets past a certain point, the camera keeps following him and the score actor no longer on the screen. How do I make it so the score is always visible on the screen and doesnt move from its location. Thank you.

Chris

Answers

  • SocksSocks London, UK.Member Posts: 12,822
    Place it on a layer of it's own - and switch off 'scrollable' on that layer.
  • mrchris317mrchris317 Member Posts: 78
    Hi Socks thanks for the quick reply. I did that and it turned the actor invisible. Any reason why this is. Thanks.
  • SocksSocks London, UK.Member Posts: 12,822
    Hi Socks thanks for the quick reply. I did that and it turned the actor invisible. Any reason why this is. Thanks.
    I'm guessing it only turned the actor invisible when you hit play ?

    If so the reason for this is that you need to place your score in relation to the camera - rather than the scene, as you will be looking through the camera so the score (and any other elements you don't want to move) need to be within the view of the camera.

    Hope that makes sense.
  • mrchris317mrchris317 Member Posts: 78
    Yea I thought it might have to do with the camera but no luck. I changed the background color too, but no luck. I am using windows version but I doubt that matters. Does the order layer matter? I switched them both and no luck. Any other suggestions. Thanks for your time. Appreciate it:)
  • SocksSocks London, UK.Member Posts: 12,822
    I changed the background color too, but no luck.

    What where you hoping this would do ?

    I am using windows version but I doubt that matters.

    It doesn't matter.

    Does the order layer matter?

    No.

    Any other suggestions.


    You just need to make sure the object you want the camera to see is within range of the camera - ie: not positioned within your stage layout, but positioned in front of the camera.

  • mrchris317mrchris317 Member Posts: 78
    I thought the background color might make it viewable. Ok so I put it on the bottom of the screen and its viewable, but I still cant make it work at the top. I think its cause the character controlling the camera is falling (accelerate behavior down). I think this is causing the timer actor at the top of the screen to not stay on camera. Im still a little stuck, but I appreciate your help. Thank you, any other suggestions or solutions would be helpful. Thanks.

    Chris
  • SocksSocks London, UK.Member Posts: 12,822
    Ok so I put it on the bottom of the screen and its viewable, but I still cant make it work at the top.
    I don't know what this means ? You've not mentioned the words 'top' or 'bottom' anywhere in your previous posts ?
    I think its cause the character controlling the camera is falling (accelerate behavior down). I think this is causing the timer actor at the top of the screen to not stay on camera.
    The 'timer' actor ? What happened to the 'score' actor, are the two the same, are you using these terms interchangeably ?

    If something is made 'un-scrollable' then it doesn't matter what the camera is doing the actor on the un-scrollable layer will stay perfectly static on the screen, perfectly in sync with the camera.
    any other suggestions or solutions would be helpful.
    I suspect your actor is probably just not positioned correctly for the camera.

    Upload your project here, I'm sure someone will be able to fix it for you.
  • mrchris317mrchris317 Member Posts: 78
    Hi Socks, I think I figured it out with some help. Thanks again for all your assistance. I appreciate it:)
Sign In or Register to comment.