Topic was automatically imported from the old Question2Answer platform.
Asked By
OskarnikPL
First off, I’m a noob at this. A total noob who just attempted making his first game without help. Everything went fine, but now I want to make a speedometer for my Player - a rolling ball. My player is a RigidBody2D with a Sprite, a Camera2D and a CollisionShape2D as its children. The camera is set to be Current(follows the player) and it has some smoothing. How can I make a label that will stay on screen in a constant, fixed position(a corner of the screen preferably), and display the X linear velocity of the ball? If something’s unclear, just ask. I really need this help.
PS: Setting it as the child of the Camera will just make it spin with the ball.
And then, how can I make the label display the X linear velocity of the RigidBody2D? It constantly give me errors saying that the node can’t be found (after using $)