this post was submitted on 29 Jul 2024
55 points (98.2% liked)

Godot

5848 readers
29 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

[email protected]

Credits

founded 1 year ago
MODERATORS
 

Sorry for the small delay on this, was competing in a gamedev competition which took up most of my weekend

The way I instantly make the variables is using tip #1 I posted https://programming.dev/post/17169923

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 3 months ago (1 children)

Interesting. Is this a compile time optimization so there’s no tree walking or lookups at runtime?

[–] [email protected] 1 points 3 months ago (1 children)

I think i read something about that being the case, and if i'm not mistaken the node can only be accessed using the unique name from inside its scene

Otherwise, if you instanced multiple copies of the same scene, you'd have name collisions and stuff

[–] [email protected] 1 points 3 months ago

I feel like you could get away with particle effects using this method