Game Scoring

Yes I am a NEWBIE: That said I am trying to write a very simple game. A PONG type game! I can create the game and make it function, but I can’t display the score. I have looked at several examples of games with scores but I guess I don’t know enough for this to be of any help. For example, I see the @ used as a place holder for the scores. How do I get this to appear? I have seen some threads talk about using a screen overlay. How do I create this? Can someone point me in the correct direction. I have the blender gamekit but once again it assumes I know more than I really do so it really isn’t of any help. I would like to do the scoring the simplest way possible. Thanks

Here ya go:

Awesome! A newbie whos actually starting off with a nice, simple game.
You have a bright future ahead! :wink:

Now the link Moguri supplied is a helpful site.

The tutorial on how to display text and numbers in the game engine is helpful, once you know how to do that make 2 planes. One should display the text ‘Score’, and next to that make another one that displays the property of the actual score.

Now to get this property youll have to use the property actuator, and set it to Copy, then set it up to copy the score property from the object which has the score property on it.

You dont have to use a scene overlay for this, but if someday you do need to overlay another scene you can use the Scene actuator, and set it to Add Overlay scene.

I’ll add another comment below, with some other helpful sites with blender game engine tutorials, which will help you with a lot of different things u might be wanting to do.

.:This is an automated message:.

Thankyou for showing interest in the BGE.
To further enhance your experience and knowledge I’ve provided some links below:

Noob to Pro (basic Blender related stuff, not all GE)
Tutorialsforblender - Huge amount of GE related stuff
Blendenzos site - Good tutorials (including Socials Intro to Python)
BSoD GE Intro
GE Wiki

Keep GE-Blending!

The “Score” part does not have to be dynamic text by the way. Unlike the score, this text does not change. Therefore, you could use a plane with a texture, or you could also convert text to a mesh:

But, dynamic text works just fine as well. Especially if you don’t want to fight with getting things to match. I’m just showing you other options; I’d probably go with the dynamic text just because it’s probably the quickest :smiley:

Great thank you both very much. So often no one wants to reply to a Newbie question because they aren’t interesting enough. I will start reviewing this information now. Thanks again

Sorry to bother you - If you could help me get this started I would greatly appreciate it. The site suggested does not seem to be up to date with the latest version of blender. I am using 2.47. I thought they should be similar enough that it would not matter but I guess I am just to stupid. ( I have tried 2.45 and 2.46 but they don’t work completely on my computer. The MMB mouse does not function in 2.45 as well as some other features not working.) 2.47 seems to work just fine.

When I go to the tutorial I am able to create a plane - I then use the UV editor to open the text file arialbd.tga. The instructions say I am supposed to assign it to the plane. I don’t see any buttons to allow me to do this.

Then I am supposed to alter the face setting of the plane to the following:


I don’t see how to get this to occur either.

Any help you can provide would be appreciated.

OK I found another tutorial that helped explain how to use the uv mapping features. This in addition to Andrew West Tutorial ( ) solved my problem. Thank for your help. :smiley:

Yeh, this is a common problem, the UV Face editor setup changed from 2.47 onwards.

In order to get that panel to show up you have to select the face in edit mode and press the shortcut ‘U’ to get the unwrapping screen up, and select Unwrap. Only once youve unwrapped an object will the appropriate panel come up in the editing panels, it will be under the title of ‘Texture Face’.

From there u can assign the values you need and use the UV window to assign the textures etc.

Hopefully that helps!

I can’t wait to see it finished!

This is good to know I spend most of the whole day trying to get it to work according to the directions in the original tutorial.

I see you are from South Australia, Adelaide Hills. Some day in the next two to three years I plan on traveling to Australia. I may send a post your way later on asking for ideas of what some of the must see’s are in Australia.

Thanks again for your help.

I would recommend using 2.48a. Other than the fact that its the most recent - and therefore the best - it has a bunch of changes/improvments to the GE which I believe most people are using now.

By the way the image you posted is of the texture face panel… it only shows up if your mesh has a UV texture applied to it and it is in the edit buttons.

No worries, Australia is a beautiful place, youll love it!