how to show speedometer in the edge of the blender screen

hi guys,

i have everything ready for car game. i just need to show my speedometer in any of the edges in blender screen when i start the game. i’m using blender 2.49 on ubuntu.

thanks,

MG

check the resource forum. I think at the first page you find the circular healthmeter. I’m pretty sure you could do the same way showing the speed.

Hello
the “classic” ways are:
You parent the speedometer object with the main camera or…
You place your speedometer in a new scene with a camera, and in the main scene you add:
Always Sensor - AND - Scene Actuator - Add Overlay Scene - thenameofthenewscene
Bye

tnx guys for quick reply.

I think your best bet is to do it on a new scene. Then use the logic bricks to add it as an overlay scene.

i appreciate your help. i’ll try with both suggestions.

MG

Have you made a speedometer?
if not, here’s a simple one!
speedometer.blend (270 KB)

ok, so…

@ OTO

i tried your 2nd suggestion and it’s not working properly. i have few doubts:

  1. should i put camera in new scene as a parent camera to the speedometer(like camera that is following a car)?
  2. what to do with a python script that comes with speedometer? how to connect sensors and actuators and which actuators to put? and what sensor to put for number = controller.sensors[“texr”].owner?

tnx

Hello

  1. Yes, you must add a camera in the new scene, then check in “camera view” if the “speedmoter” is at the desired placement…if not, move the camera ( or the speedometer)!
    No need to parent!
  2. Well, the scripts should work…are the Logic Bricks “linked” to objects in the main scene?
    If yes, you must use “Messages” to pass “data” between scenes.
    Bye

ok. i did what you told me in the first checkpoint :smiley: but 2nd is complicated.
should i connect the sensors in the 1st or 2nd scene? how to connect scenes to pass “data”? can you explain it little more thorough?

removed sorry

aaaaaaaaaaaah, finally. thanks! :RocknRoll:

one more question. how to connect speed that i’ve calculated in one of my own scripts with this speedometer and is it possible? :confused:

show me your blend? you just need to replace the variable: “speed = owner.getLinearVelocity()[2]” with “speed = youvar” !!!however!!! if you want a variable across scenes and scripts, in your script that has the speed in it: “GameLogic.speed = yourspeedvariable”

tnx for post. i will post blend as soon as i find some free time.