Godot

6265 readers
38 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 2 years ago
MODERATORS
551
 
 

Hello all!

Like most people I find myself a recent refugee from the Unity fiasco. I've been trying to prototype a project in Godot and I've been running into an issue I would think would be pretty easy to find a solution to as it seems to be a pretty fundamental building block of any project in Godot. Perhaps I'm misunderstanding how to accomplish this in Godot, but essentially I'm instantiating a number of tiles to be used for a grid system in my game. I want these tiles to be able to emit their index and transform values and then have other scripts pick this information up as needed. From what I've read signals are the way to do this, however whenever I try to send a signal with or without parameters nothing seems to happen. I seem to be able to connect to the signal just fine but the method doesn't seem to be called.

Here's an example of me defining the signal and then emitting it:

signal index_transform()

index_transform.emit()

And here's how I am connecting and attempting to call the method in a secondary script:

func _ready() -> void:
	var hexGrid = get_node("/root/Main/Map/HexGrid")
	hexGrid.index_transform.connect(Callable(self, "_get_hex_index_transform"))

func _get_hex_index_transform():
	print("I'm Connected")

And when I'm passing parameters from what I understand I should only have to include the parameters like so:

signal index_transform(index, transform)

index_transform.emit(tile_index, tile_coordinates)
func _ready() -> void:
	var hexGrid = get_node("/root/Main/Map/HexGrid")
	hexGrid.index_transform.connect(Callable(self, "_get_hex_index_transform"))

func _get_hex_index_transform(index, transform):
	print("I'm Connected")
	print("INDEX: ", index," POS: ", transform)

However neither of these seem to work. What am I doing wrong?

552
 
 

For example if you want pretty effects like areas being lit by projectiles will Compatibility provide lower of options than Forward+ ?

Can you use materials (normals, reflect, etc) on textures in Compatibility to have light show up as it's passing by?

I'm still getting a grasp on things, nothing serious yet, but I'd like to know what to expect and your experience. More of a food for thought type of question.

553
 
 

I have a wall in my 3D game which is relatively thin and it can be hit on both sides with objects that may occasionally be moving somewhat fast. Is there a reliable way to ensure that the colliding objects will be stopped on either side of the wall as opposed to simply passing through?

554
 
 

The past days the timeline of Unity user passivestar has been very enjoyable as they try out Godot and make many exciting discoveries about the engine (and bugs that they create issues for). They might also find something new that an experienced Godot user did not know before.

Alternative link via nitter: https://nitter.net/passivestar_/status/1704435403606864036

555
 
 

this seems a well-argued article to me the 'General directionless development' seems the most concerning point, I don't think the 'let's go with what the community ask\want' model is gonna work in the end.

what do you think?

556
 
 

Runs at around 300 FPS on my RTX 3060, WITH realtime global illumination enabled (sdfgi). Sadly still not fast enough for the scene to be playable in VR on my hardware - at least not at native resolution.

Some additional screenshots:

I'm pretty new to Godot, and the tower is a model I made for a different project. This is an updated version of the scene I posted here a couple of months ago. I'm posting this to show that you can achieve some pretty nice graphical fidelity in Godot - and you don't need to be a professional artist or have tons of Godot expertise to do it.

557
 
 

Huge boost for Godot development!

Screenshot of their statement

558
559
 
 

Just something I came across that seemed worth sharing.

560
561
 
 

The main target of the Godot Engine are game developers. But Godot's easy workflow and functional UI elements, makes it also a good fit for non-game applications. There are already some out there you may know, like Pixelorama, an Open Source 2D sprite editor.

562
563
564
 
 

When reloading the same scene which is currently the current_scene, the script attached to the root node of the scene disappears. Every other script within the scene still appears. I tested this, by putting this:

func ready(): print("[DEBUG] I have a script!") into the script of the root node of the scene. Is this a known issue, or am I doing something wrong?

I'm reloading the scene with: @onready var startMenu:PackedScene = preload("res://ui/start_menu.tscn")

func _on_reload_pressed(): get_tree().change_scene_to_packed(startMenu)

Using the latest stable version

565
 
 

archive || nitter

We're amazed and humbled at this level of support, and how much this will accelerate our efforts!

Thank you so much @OSSCapital and @JosephJacks_ for adding an incredible $10,000/month to the #GodotEngine Development Fund! 💙

Contribute:
Godot Patreon
Godot Development Fund

566
567
568
 
 

Not sure if good or not, but might be interesting for people trying to switch from Unity.

569
 
 

I'm trying to make an action where the player can pick up and throw a rigidbody3d. I want the object to act like a rigidbody when not in the player's hands, but when it is, I want to set the rigidbody position to match a marker3d which is a child of the player.

What's the best approach to something like this? Should I be using integrate forces here? I'm not sure I really understand when and when not to use it.

570
 
 

In case you're suddenly facing the task of porting an entire game over due to capitalist nonsense or something

571
 
 

@godot's timing on announcing the development fund is just *chef's kiss*. The landing page was out there without announcement for some time, I guess they simply took the opportunity as they should have :)

572
 
 

I made a blog post about my experience switching from Unity to Godot earlier this year, and some tips for Unity devs.

573
574
575
view more: ‹ prev next ›