Need help with a speedometer

Hi, again;
My car game have all, except a speedometer. I want a digital speedometer with GUIText.
Please anyone can help me?
Sorry for my bad english, is not my mother language :wink:
Thanks

Well that’s a bit vague, but you just need to do two things.

Set up a UI for the speedometer. It’ll need an image for the background or something and a Text object with a 7-segment LCD font. That should be pretty easy.

The car then needs to have a behaviour that has a reference to this Text UI object. Every frame, or more likely every 1/10th of a second or something get the car’s velocity from the rigidbody, get its magnitude, and then you’ll just need to so something like speedometer.text = String.Format(“{0:0.0}”, rigidbody.velocity.magnitude);

That’s the gist of it, but there are ways to improve this.

What are you having trouble with? the GUIText component? Finding the velocity of the car? text formatting?

With the GUIText. I’ve made a script in JavaScript, but since it does not work, I tried everything I could to make it work until I get tired, and delete the script, I can not retrieve it

GUIText is wrong. It’s the old, old, old GUI system, and it’s terrible.

The modern UI system is described here.

I know. But a way to make a speedometer with UI Text??? Help!

He’s already linked to you what you need. You need to use the UI system to do this, and that’s too much to explain in a forum post.