0 votes

I have been trying to use a progress bar to simulate a life bar for 3D Sprite models. The issue arrives where the progress bar will not appear in 3d. I have tried using the progress node as a child to the 3D sprite but still the life bar will not appear. I know I am doing something wrong, i'm just not sure what it is.

in Engine by (12 points)

1 Answer

+1 vote

The ProgressBar node is a canvas item not a 3D spatial node. You can use it to resize a spatial node with a MeshInstance child that is positioned so that the end of the mesh is at the parents origin. You can then code it like this

3DBar.scale.x = ProgressBar.value
by (3,227 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.