Hello everyone!
How i can make a speedometer for my game?
my game is same"Hill climb racing".
car doesn't have "car" behavior. it has"physics"!
PLEASE HELP ME!
Develop games in your browser. Powerful, performant & highly capable.
If you need to know the speed of physics object, use this expression:
round(distance(0,0, object.Physics.VelocityX, object.Physics.VelocityY))
It will give you speed in pixels per second.
Thanks a lot for your helping!
But can you explain it in a Source file?
of course I have to say, i want show the speed by needle in Rated Circle.(I have these shapes)
See this demo:
dropbox.com/s/6o1jx2tgct5ah4q/PhysicsCarSpeed.c3p
THANK YOU VERYYYYYYY MUCH!!!!!
THAT WAS VERY USEFULL!!!!!!
With Best wishes.