Godot

6007 readers
20 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

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
301
302
19
Await Question (programming.dev)
submitted 11 months ago* (last edited 11 months ago) by plixel@programming.dev to c/godot@programming.dev
 
 

I'm curious what happens if you use await for a signal, but the signal is never received? Does this cause some kind of hangup?

For example if I have a function structured like so:

func foo():
    do something
    await signal.finished
    do something else

And the "finished" signal never comes, does the await call just hang indefinitely?

303
304
305
 
 

Source code: https://github.com/TKperson/badapplenn

It's my first time using Godot, so source code is kinda messy

This project took two weeks of my life. Hope y'all like this

306
14
submitted 11 months ago* (last edited 11 months ago) by 0WN3D@lemmy.cafe to c/godot@programming.dev
 
 

Hey, I am planning on building a co-op multi-player deck builder as a side project, nothing fancy or grand of sorts.

I'm kinda new to this Godot thing, but I kinda get the gist of it. Was always interested in it.

I have prior experience with Game Maker and Unity, so picking up the basics was rather simple, given that I also do programming as a job. So don't simply dismiss this as too ambitious a project to start with when learning Godot.

I just want to ask it out there, are there any advise on how I should structure the code or any advise in general? Just want to be prepared for issues in the future and plan for it.

Basically, my initial idea of the game is think of multiplayer Slay the Spire. But I want a more elaborate upgrade system to the cards, closer to Wild Frost.

For now, my head space for the design is to have:

  • Card details, ie names + descriptions + image are resources since they are data that are "loaded in".
  • Actual cards that exists throughout the run would be actual nodes, with modifiers as child nodes + Multiplayer spawners to syncrhonise them. Base cards will pull details from the resource and have an empty modifier
    • I previously tried to build it using Multiplayer Synchronizer, but then suddenly realized I can only sync simple properties. It didn't let me create a custom node and synchronize it. Then I had to resort to some ID system for the object which became rather messy.
    • Based on my current testing, Multiplayer Spawner seems to do its job better.
    • Should I use a "modifier node" + children to indicate the list of effects, or an array variable? I'm not too sure when to use the node to organize data vs using an array variable
  • The actual cards are stored as a global node, which would be moved to the "playfield deck node" during the gameplay portion

Lemme know if there is some obvious flaw in my approach or if there's a better way to do things. Or if such a project may be too ambitious with the current multiplayer library for Godot.

Especially the multiplayer aspects, since there is not "a lot" of tutorials on it, I feel like there's a few pitfalls that is waiting for me.

307
308
309
310
311
312
 
 
313
30
submitted 11 months ago* (last edited 11 months ago) by popcar2@programming.dev to c/godot@programming.dev
 
 

TL;DR from the official Mastodon:

Have a TL;DR as well:

  • major render pipeline optimization
  • improvements in the animation area
  • a quality of life change for C# users
  • common Nvdia issue solved
  • Node & OS documentations overhauled
314
315
 
 

Hi everybody! What you see behind me in the background of this video is the result of several algorithms commonly used in creating shader effects. Specifically, it involves the Voronoi diagram, a pseudorandom vector generator, and a custom color palette. If you like this effect and would like to use it in your Godot game, keep watching. I will demonstrate and explain how to create it from scratch.

316
317
20
submitted 11 months ago* (last edited 11 months ago) by mac@programming.dev to c/godot@programming.dev
318
319
320
 
 

Hey folks, I just released my fake OS project after around 2.5 months of working on it. Any feedback is greatly appreciated, thanks!

Get it here: https://popcar2.itch.io/godotos

Source code here: https://github.com/popcar2/GodotOS

321
 
 

Is there something like a node ID which is specific to that node and will be the same no matter how often I execute the game? That would be super useful for saving and loading games.

322
 
 

Hello everybody! In this video, I would like to demonstrate how we can create custom nodes for the visual shader editor in Godot 4. It's a very useful functionality because, despite being a powerful tool, the visual shader editor contains only a finite number of built-in nodes. Sometimes, we'd like to add more nodes that we want to use frequently. It's easy, and I'll show you how to do it right away.

323
 
 

This repository contains a basic project setup along with CI/CD. By default it will build for windows, linux and the web and upload their artifacts, along with deploying a build to GitHub Pages.

Not mine, but this sounds really useful for anyone looking for easy builds and deployment.

324
 
 

TLDW: To have g, r, and s blender hot keys in godot 4.2 click Editor --> Editor settings --> search for "begin" --> use the Plus symbol to set "Begin Rotate Transform" hot key to r, then "Begin Scale Transform" to s, and "Begin Translate Transform" to g. My favorite thing not mentioned in the video is that constraining also works. So you can press r then x and rotate in the x axis or g shift y and translate on the x and z axis.

325
 
 

Hi everybody! It is January 2024, I wish everyone a happy new year, and I'm back with new videos from the world of Godot, shaders, and I'm also planning to record something about modeling in Blender. Anyways, the first video of this year is dedicated to a shader that can be used for interesting post-processing effects and uses the Sobel operator along with other algorithms, such as Gaussian blur. Let's dive into it.

view more: ‹ prev next ›