Scoreboard, Centering

Get help using Construct 2

Post » Fri Feb 14, 2014 12:01 am

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
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Fri Feb 14, 2014 12:17 am

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)
B
6
S
2
Posts: 19
Reputation: 547

Post » Fri Feb 14, 2014 3:40 am

Thanks for your quick Response.

I will consider this. But my Scoreboard has to be on the same layer.
B
10
S
2
Posts: 135
Reputation: 1,090


Return to How do I....?

Who is online

Users browsing this forum: LunaticCat and 8 guests