elsen0xcc.bsky.social
@elsen0xcc.bsky.social
Today I learned in #godot

`.bind` binds arguments in reverse order.
This code will break, and the emitter will throw 🤦

```
Error calling from signal 'on_hovered' to callable: 'Node(MouseControls.gd)::_on_hovered': Cannot convert argument 1 from bool to Object.
```
April 4, 2025 at 10:45 AM
5. Add a script with:

- The `@export value` you'll use to set your new progress bar,
- An update function that shifts the atlas' region based on the value.

I just let the script do the maths for me, no other input than the atlas itself.
March 28, 2025 at 9:30 AM
4. Pick the correct region size:

h is the total height
w is the total width divided by the number of frames

You can quickly find these values by looking at Godot's UI. It'll also do the math for you (input 520 / 5).
March 28, 2025 at 9:27 AM
I'm short on time, so I just repurposed Godot's Atlases:

1. Create a sprite in asesprite, each frame is a step
2. Export it as a single sprite sheet.
3. Import as an Atlas
March 28, 2025 at 9:22 AM
Replacing anonymous progress bars with meaningful UI

Day 1: Phone Signal icon 🛜
March 28, 2025 at 9:16 AM
If you're doing 3D in Godot, you (should probably) use DebugDraw3D.

Personally, I have debug spheres and lines everywhere on screen when I debug my project,

The latest update adds TEXT, which is a HUGE QoL improvement.

github.com/DmitriySalni...
March 28, 2025 at 8:06 AM