Turbo Thrust: Ultimate Online Racing

I am trying to make a Speedometer in this game I am making and I am having a really hard time. I am trying to use a physics joint and velocity but I think I may be using it wrong could someone please show me how to do it or make an example?

1 Like

Flowlab Game Creator - Speedometer
Here is a game made by @JR01 . Hope this helps you!
(Sorry for the ping.)

2 Likes

Thank you so much, that is actually really helpful!

1 Like

Thanks! All the credit goes to JR01! Also, there is a speedometer made by PixelPizza that uses positions instead, if you need to use that one.

Could you please send me the link?

1 Like

I do not have a link to it, just the code. If that helps?

Code here

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":2,"outputCount":2,"name":"Pixel Velocity Calc","behaviorType":"logic.NodeGroup","x":-450,"y":-128,"id":"53761be560169c4a","notes":"\"Pixel Position Velocity Calc\"\nby Samuel Pixelpizza","n_o":1,"isMenuItem":false},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":1620,"y":320,"group":"53761be560169c4a","id":"53761be592e2414e","targetId":0,"prop":"y"},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":1620,"y":-24,"group":"53761be560169c4a","id":"53761be5c6df5f41","targetId":0,"prop":"x"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":2160,"y":8,"group":"53761be560169c4a","id":"53761be6553f7246","portId":"53761be560169c4ao0","tag":"x","dataType":2},{"delay":0,"count":0,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":1440,"y":160,"group":"53761be560169c4a","id":"53761be659f2a34a"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":1260,"y":128,"group":"53761be560169c4a","id":"53761be6caa2554b","portId":"53761be560169c4ai0","tag":"on","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":1260,"y":224,"group":"53761be560169c4a","id":"53761be69bb3564a","portId":"53761be560169c4ai1","tag":"off","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":2160,"y":392,"group":"53761be560169c4a","id":"53761be68c4cce4f","portId":"53761be560169c4ao1","tag":"y","dataType":2},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":1620,"y":528,"group":"53761be560169c4a","id":"53761be615073d46","targetId":0,"prop":"y","version":2},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":1620,"y":168,"group":"53761be560169c4a","id":"53761be60b62d54b","targetId":0,"prop":"x","version":2},{"delay":1,"count":0,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":1440,"y":352,"group":"53761be560169c4a","id":"53761be62367b34c"},{"expression":"A-B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":1800,"y":8,"group":"53761be560169c4a","id":"53761be77569174b"},{"expression":"A-B","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":2,"version":2,"tag":"","inputCount":3,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":1800,"y":392,"group":"53761be560169c4a","id":"53761be7795da84d"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1980,"y":8,"group":"53761be560169c4a","id":"53761be78cb3b945","startVal":0,"tag":"x velocity","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":1980,"y":392,"group":"53761be560169c4a","id":"53761be7daef7744","startVal":0,"tag":"y velocity","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":1620,"y":424,"group":"53761be560169c4a","id":"53761be7d21d654d","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":1620,"y":80,"group":"53761be560169c4a","id":"53761be76601a940","_startVal":0,"dataType":2}],"links":[{"input_id":"53761be7795da84di0","output_id":"53761be592e2414eo0"},{"input_id":"53761be7d21d654di2","output_id":"53761be592e2414eo0"},{"input_id":"53761be77569174bi0","output_id":"53761be5c6df5f41o0"},{"input_id":"53761be76601a940i2","output_id":"53761be5c6df5f41o0"},{"input_id":"53761be5c6df5f41i0","output_id":"53761be659f2a34ao0"},{"input_id":"53761be592e2414ei0","output_id":"53761be659f2a34ao0"},{"input_id":"53761be659f2a34ai0","output_id":"53761be6caa2554bo0"},{"input_id":"53761be62367b34ci0","output_id":"53761be6caa2554bo0"},{"input_id":"53761be659f2a34ai1","output_id":"53761be69bb3564ao0"},{"input_id":"53761be62367b34ci1","output_id":"53761be69bb3564ao0"},{"input_id":"53761be7795da84di1","output_id":"53761be615073d46o0"},{"input_id":"53761be77569174bi1","output_id":"53761be60b62d54bo0"},{"input_id":"53761be76601a940i1","output_id":"53761be62367b34co0"},{"input_id":"53761be60b62d54bi0","output_id":"53761be62367b34co0"},{"input_id":"53761be7d21d654di1","output_id":"53761be62367b34co0"},{"input_id":"53761be615073d46i0","output_id":"53761be62367b34co0"},{"input_id":"53761be78cb3b945i0","output_id":"53761be77569174bo0"},{"input_id":"53761be78cb3b945i1","output_id":"53761be77569174bo0"},{"input_id":"53761be7daef7744i0","output_id":"53761be7795da84do0"},{"input_id":"53761be7daef7744i1","output_id":"53761be7795da84do0"},{"input_id":"53761be6553f7246i0","output_id":"53761be78cb3b945o0"},{"input_id":"53761be68c4cce4fi0","output_id":"53761be7daef7744o0"},{"input_id":"53761be7795da84di2","output_id":"53761be7d21d654do0"},{"input_id":"53761be77569174bi2","output_id":"53761be76601a940o0"}]}}}

Credits to @Samuel_Tomé_PixelPizza for this!
(Sorry for the ping.)

1 Like