Discuss Scratch

derpyvy
Scratcher
41 posts

How to center text/numbers/score?

I'm making a game where the score should be shown at the top center part of the screen. I can't figure out the math to do this though. I would really appreciate if someone were to help, as I will be much closer to finishing the game!

whenIreceivehelpsayThank you so much!
Ayarkay
Scratcher
73 posts

How to center text/numbers/score?

If you're using a variable to display the score, you can actually just drag the variable display around your stage. Can you share the project so we can have a look?
derpyvy
Scratcher
41 posts

How to center text/numbers/score?

Ayarkay wrote:

If you're using a variable to display the score, you can actually just drag the variable display around your stage. Can you share the project so we can have a look?
I'm not using the default variable display. I'm trying to make sort of a text engine to display the score using the more pleasant-looking costumes I made. I already knew I could do that, but I want my game to be more professional.
Ayarkay
Scratcher
73 posts

How to center text/numbers/score?

Fair enough. The offset of your display will depend on how many digits you're displaying. If you give me a link to your project I'll give it a shot later today.
derpyvy
Scratcher
41 posts

How to center text/numbers/score?

Ayarkay wrote:

Fair enough. The offset of your display will depend on how many digits you're displaying. If you give me a link to your project I'll give it a shot later today.
Since I'd rather not share the actual game, I made this project, as it's the only thing I need help with.
derpyvy
Scratcher
41 posts

How to center text/numbers/score?

bump because I really want to finish this thing
mstone326
Scratcher
1000+ posts

How to center text/numbers/score?

See if this is what you are looking for. I looked at your project. To answer your question in there. I do not use the parent sprite for the score. I just use the clones.

https://scratch.mit.edu/projects/165068770/

Last edited by mstone326 (Sept. 6, 2017 22:10:16)

asivi
Scratcher
1000+ posts

How to center text/numbers/score?

derpyvy
Scratcher
41 posts

How to center text/numbers/score?

mstone326 wrote:

This project

asivi wrote:

This project
Ahhh, thank you both! I'll most likely use asivi's method, but thank you both again for the efforts c:
By the way, I will credit you in the finished project <33
Thank you again!
asivi
Scratcher
1000+ posts

How to center text/numbers/score?

Geets.

Powered by DjangoBB