Scoreboard, Centering

0 favourites
  • 3 posts
  • Hello folks!

    When the player looses, the game creates a scoreboard.

    On this scoreboard it creates an object "text". I cant get its text centering to work.

    Here is a screenshot of my code:

    goo.gl/Eb9o8L

    Thanks in advance

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could force the game to a new layout while saving the score in a global variable, and while doing that you have an entire layout to decorate and make look good :) While you are at it with all that room in the layout you could show previous scores. But to center it in the new layout just create an object that's invisible at the top left of the screen or center and play with the image point until it's almost dead center, then edit the board by using the even sheet and doing something like:

    OnCreated(Board) setX : invisSprite.X + (number) / SetY : invisSprite.Y + (number)

  • Thanks for your quick Response.

    I will consider this. But my Scoreboard has to be on the same layer.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)