Godot

5924 readers
188 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
426
16
Large scenes stop opening (lemmy.blahaj.zone)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/godot
 
 

I have had this happen with two scenes by now. These scenes consist of a large tilemap with multiple layers, a player and thats it. The scenes inherit from a LevelBase class I wrote, but that is so simple. that it can't be the problem. LevelBase just has a open_pause_menu() function and nothing else. Does anyone know why this might be happening?

EDIT: Forgot to translate the message. It says "scene file 'office.tscn' seems to be invalid or faulty."

427
31
submitted 1 year ago by mac to c/godot
428
34
submitted 1 year ago by popcar2 to c/godot
 
 

Notable additions:

  • FSR 2.2 support

  • 3D shadows for the Compatibility renderer

  • A new lightmapping de-noiser

  • GDExtensions can now be reloaded in the editor (previously you had to close and re-open godot)

  • Lots more bug fixes and optimizations

429
 
 

Hi All :)

Massive thank you to everyone who gave feedback on the first demo I posted. I've already made improvements to the clarity of the gameplay, map and menus. As well as adding in the much requested damage counter for spell damage.

Wildmagic Wizardry now has a steam page! So please go hit wishlist to get a notification when my game launches into early access http://bit.ly/45hsnhV

The updated demo is now available on itch.io to play. Spell animations are another highly requested feature that are (hopefully) coming soon! http://bit.ly/3Q2cmYw

430
 
 

I've seen several different methods for accomplishing this, but I was wondering if there's a way of doing it that is best? Also, somewhat related, but is delta in milliseconds?

431
 
 

We are doing an N64 style graphics jam starting next week. There are no prizes other than bragging rights, but we have fun with it anyway! Come join us!

432
 
 

13:00 - 13:45 UTC 15:00 - 15:45 CET/CEST 09:00 - 09:45 EST/EDT 06:00 - 06:45 PST/PDT 16:00 - 16:45 EET/EEST

godot-playfab – A Godot Extension To Easily Integrate PlayFab, a Cloud-Based Backend as a Service

Intermediate

Johannes Ebner

Today, all games – whether single or multiplayer – need a backend.

But game devs want to build games, not backends (well, with some very rare exceptions). Enter PlayFab, a free backend-as-a-service solution (up to 100k users). But how do you interact with it in your favorite game engine, Godot, with your favorite scripting language, GDScript?

In this session, we’ll show you how to leverage godot-playfab, the Godot/GSDScript SDK Johannes maintains, so you can make the most of it in your Godot game!

433
 
 

So I've been working on this concept for a bit. The goal here is to make my game's terrain and roads in-engine, so that geometry, object spawns, traffic paths, and such are generated automatically. I'm posting this both because I wanted to share this, and to get opinions and advice.

Spoiler: more pics


Current challenge:
I have restarted this a couple times, trying different approaches. For the current iteration I have decided that I need to build the foundation properly before I bring in anything from the above screenshots.

The foundation:

The idea is to create a network of path and intersection nodes, to which I can add modifiers, such as road generator, mesh deform, or object spawn. Managing connections via editor tree became a pain very fast.

Now I need to figure out how to connect these easily, preferably via the viewport, by just dragging the path handle over the intersection handle. Any tips?

434
 
 

I am going through the Godot tutorial and am in the 3D part. I clicked the perspective button and changed to top view. I now have no idea how to return the editor camera to where it was before and the tutorial seems to expect you to be in this default view. I tried searching, but I don’t think I am using the correct words to describe what I want.

435
 
 

My script sets this value in editor. How can I keep the the changes when saving the scene?

class Anchor:
	var offset: Vector3
	var connected: Node3D
	var end: bool

var anchors: Array[Anchor]

I found this issue, so I tried fiddling with _get_property_list(), but that didn't work. It also doesn't seem that I can export the var.

Thanks

436
10
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/godot
 
 

So, I'm trying to rotate the player as they turn left and right in a top down view. The rotation works correctly when moving right, but fails going left.

Here's the code that handles the rotation

rotation = move_toward(rotation, PI / 12 * direction.x, PI / 2 * direction.x * delta)

The numerical values look right, giving me 0.261 rads going right and -0.261 rads going left ... but the rotation going left continues to go clockwise and stops just before a full 180.

Is there some quirk with rotation that I'm missing? My rubber ducks have remained silent.

437
25
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/godot
 
 

I’m just curious about which is the most efficient way of doing this kind of node enumiration:

for i in something():
    o=[var1,var2,var3,varN][i]
    o.new()
    o.do_something_based_on_number_of_loops()
    add_child(o)

or

for i in something():
    match i:
        0:
            o=var1
            o.new()
            o.do_something_based_on_number_of_loops()
            add_child(o)
        1:
            o=var2
            o.new()
            o.do_something_based_on_number_of_loops()
            add_child(o)
        2:
            o=var3
            o.new()
            o.do_something_based_on_number_of_loops()
            add_child(o)
        N-1:
            o=varN
            o.new()
            o.do_something_based_on_number_of_loops()
            add_child(o)

or

var items = [var1,var2,var3,varN]
for i in something():
    o=items[i]
    o.new()
    o.do_something_based_on_number_of_loops()
    add_child(o)

Or is there a more efficient way of doing it?

Edit: Sorry if that wasn't clear. Is it better to constantly get something from an "unstored list", store the list in a variable, or not use a list and use a match statement instead? Do they have any advantages/disadvantages that make them better in certain situations?

438
10
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/godot
 
 

How would I go about creating a pixel art theme for a game? I don't want to lower the resolution of the game, as it is supposed to render the game in the native resolution and I want crisp effects and text. Currently Godot makes a single pixel of the ui a single pixel on the screen. How would one go about fixing that? UI looks like this currently:

Do I really have to scale every control, or can I set it up for controls to automatically display its textures bigger?

EDIT: Here is a zoomed in version of the picture above. This should clarify of what I want to achieve (without having to zoom in)

439
 
 

I picked up the Zenva bundle from Humble and I've done the first two classes and I feel like I learned a little, but the classes have failed to actually teach me much of anything about GDScript. I don't understand why I typed what I typed or how to use the code I did "learn" so far.

Any recommendations for other tutorials or something I could read to learn more? Maybe a book or a website of written tutorials.

I'm going to continue with the courses, but I feel like I'm not going to get much out of them.

440
 
 

https://www.youtube.com/@Brackeys/about


Text version, thanks to @[email protected]:

Image Text

BRACKEYS

Hello everyone!

It’s been a while. I hope you are all well.

Unity has recently taken some actions to change their pricing policy that I - like most of the community - do not condone in any way.

I have been using Unity for more than 10 years and the product has been very important to me. However, Unity is a public company. Unfortunately that means that it has to serve shareholder interests. Sometimes those interests align with what is best for the developers and sometimes they do not. While this has been the case for a while, these recent developments have made it increasingly clear.

Unity has pulled back on the first version of their new pricing policy and made some changes to make it less harmful to small studios, but it is important to remember that the realities of a public company are not going to change.

Luckily, there are other ways of structuring the development of software. Instead of a company owning and controlling software with a private code base, software can be open source (with a public code base that anyone can contribute to) and publicly owned. Blender - a stable 3D modelling software in the game dev community - is free and open source. In fact some of the largest and most advanced software in the world is built on top of open source technology like Linux.

The purpose of this post is not to denounce Unity because of a misstep, to criticise any of its employees or to tell anyone to “jump ship”. Instead I want to highlight the systematic issue of organizing large software projects under a public company and to let you know that there are alternatives.

I believe that the way to a stronger and more healthy game dev community is through software created by the community for the community. Software that is open source, democratically owned and community funded.

Many of you have been asking for us to produce new tutorial series on alternative engines such as Godot, which is currently the most advanced open source and community funded game engine. I don’t know yet if this is something that we can realise and when.

I can only say that I have started learning Godot.

Best of luck to all of you with your games, no matter what engine they might be built on!

Sincerely,

Asbjern Thirslund - Brackeys

441
442
 
 

I'm not terribly proficient with making materials yet, but I was wondering if something like this is doable and if so, what it might involve. I basically want to make a part of a creature appear beneath the ice in 3d. but I don't know how to approach it or what I should be looking at.

443
 
 

TL;DR:

Before:

An image showcasing the old de-noiser

After:

An image showcasing the new de-noiser

These images are 2 weeks old and there have been some changes to it, as well as a slider to adjust de-noising. Notice how much more pronounced the ambient occlusion is, and how much better the overall shading is. It's also faster than the older implementation.

On the scene I used for testing this out, the overall rendering time went down from 3 minutes to just over 1 minute in an RTX 3090 Ti with an 8K lightmap.

Bonus: This PR shaves off a massive chunk of the codebase (about 10% apparently.) Expect faster build times and a smaller engine size in 4.2!

An image showing a diff of +304 and -114,449

444
 
 

Is there a way to disable it, so that, when I switch from godot to my browser it does not type my search in godot instead of my browser?

445
61
submitted 1 year ago by mac to c/godot
446
47
submitted 1 year ago by mac to c/godot
447
 
 

This adds AMD FSR 2.2 scaling to Godot, where it previously only supported FSR 1.

448
449
 
 

One of the big winners of the Unity debacle is the free and open source Godot Engine, which has seen its funding soar to a much more impressive level as Unity basically gave them free advertising. Certainly helps that Godot ended up launching their new funding platform on the same day Unity announced their hated Runtime Fee system.

Initially when the Godot developers announced their new funding platform they only had around €25K per month from 438 members. This has now exploded up to €50,323 per month from 1,458 members. A much better and more sustainable amount considering they're building an entire game engine.

They also recently gained Terraria developer Re-Logic as a Platinum sponsor, as Re-Logic donated $100K along with $1,000 a month in ongoing funding. On top of that developer Robot Gentleman of 60 Seconds! has also upped their support of Godot and no doubt plenty of others.

Hopefully this is going to be a turning point, where developers look more to open source tools where feasible instead of locking themselves into proprietary game engines with predatory business practices. Unity has proven multiple times now they're willing to break developer's trust like their messing around with Terms of Services.

450
 
 

I am trying out Godot and I've noticed that when I export the game to linux, the result has a much longer boot time

I'm talking about an 80mb executable for a 3d game and the difference between windows and linux is 0.x seconds vs 10 seconds (the windows computer is more powerful but not by that much...)

I wouldn't care much about that, but during that load time the scene's ready() is triggered and music is played. This causes the cutscene to be desynced with the music and is quite jarring.

Does anyone know why this is happening? Version is 4.1.1 btw

EDIT: after some trial and error I've finallly found the issue. Surprisingly the cause of it was the world environment, more specifically the sky settings, which I had set to high. Bumping them down pretty much fixed the issue.

It's probably a bug, but hey, it works now 🤷

view more: ‹ prev next ›