Godot

6005 readers
36 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
26
 
 

This makes it so that its disconnected from the main editor and you can drag it onto other screens

Alt text: A tooltip appearing over the godot edit saying Make the Script editor floating. Appearing near the top right of the script window due to hovering over the top right button there.

27
28
 
 

Alt text: Godot editor looking at the Action on Play setting opened and showing the options Do Nothing, Open Output, Open Debugger

This is yesterdays tip but ended up falling asleep before It was posted so there will be another tip today

29
 
 

Hey everyone! I would say that there are never enough post-processing effects, and it’s good to have as many options as possible when deciding which would fit best for our game. This time, I’ve prepared something simple again that fits into a few lines, yet the result can be quite interesting, especially if we’re not averse to some psychedelic effects. Let’s take a look at how we can implement a simple radial blur.

30
 
 

cross-posted from: https://lemmy.world/post/22635533

Hello!

I am writing to ask for ideas from anyone of who you want to add and how they would be implemented.

There is a hobby I have of practicing my programming skills by creating open source versions of games I like to play.

For a while now, I have been really feeling the need for a GPL Super Smash Bros clone.

It would be so fun to have GNU and his family of characters (popular open source project mascots) to play as similar to how they have it in Tux Kart.

But, I am not very good with balancing and coming up with unique move sets. Could you help me out with fun ideas of what kind of fighting moves Tux and his friends might have.

If you have any special characters of your own design, then I can help after I add modding support.

The move set and control scheme will be exactly from the game this takes inspiration from (or latest version of it). This might change though, depending on what others may want.

Godot will be the game engine of course.

License will be AGPL-3.0 only! Unless there is a reason for another one.

Repository will be on codeberg.org as always

Name of Game: ??? Drop suggestions in the replies, thank you.

I am not the best developer and only really do quick prototypes, but with this information I can have a better direction of where to go. I can confidently tell you, this will not be too much of a challenge so you do not have to worry. So long as I have time to crunch, it can be made.

This posting is just for whoever may come across it so they can put their ideas out there. Development will not start immediately. I have not been able to work on anything at all recently, but will start again soon within the next few months.

I look forward to the thoughts of everyone. I very much prefer to work in Godot. Please ask as many questions as you need, I know this may not be so readable.

31
 
 

This makes it so you can see details about things in the scene without needing to manually swap

32
 
 

This makes it easier to print out multiple things at the same time without needing to do a bunch of string concatenation

Easy way you can remember it is thinking s for space and t for tab. When you want to print normally just call print. Otherwise add s for space or t for tab on the end of the function for the separators.

33
 
 

Changing this to the lowest value (0.01) makes suggestions always appear instantly for really quick coding

I'm continuing my tip series with some more tips (ended up stopping it before since I got busy with some projects). Will have a goal of having tips at least until the new year

34
 
 

cross-posted from: https://lemmy.zip/post/27055106

​Hackers have used new GodLoader malware exploiting the capabilities of the widely used Godot game engine to evade detection and infect over 17,000 systems in just three months.

35
 
 

Hi everyone! I recorded this video outside my usual weekly schedule because it doesn't focus on any specific shader. However, it's a topic that's useful to explain, as not all details may be clear from the official documentation. The video will cover working with images in shaders, particularly different types of filtering.

36
 
 

Before the game had an abstract "grab" mechanic. But having a physical tool seems more immersive (Skeuomorphic Design).

Coding that is shocking simple: Trace a ray to the object to grab, get the position, and apply a force on that object from that position towards the player.

37
 
 

Hey everybody! There are many ways we can adjust or enhance what we want the player to see on the screen while playing our game. I’ve already discussed several post-processing algorithms in previous videos, and this time I’d like to add another to the collection, which is quite computationally inexpensive and is something between edge detection and converting a color image into a monochromatic sketch. Let’s take a look at it.

38
39
 
 

I have heard many times that if statements in shaders slow down the gpu massively. But I also heard that texture samples are very expensive.

Which one is more endurable? Which one is less impactful?

I am asking, because I need to decide on if I should multiply a value by 0, or put an if statement.

40
 
 

Hi everyone! Do you remember the shader I unoriginally called the Line Effect Shader and published a tutorial on creating it about nine months ago? Today's effect will be somewhat similar, with some horizontal structures twisting around and creating the impression of something liquid or almost plasma-like. Let’s take a look at how it’s programmed.

41
 
 

I and a few friends worked on this as a passion project. We hope you'll enjoy it!

https://store.steampowered.com/app/2499500/Haunting_Hijinx/

https://github.com/zibetnu/haunting-hijinx

42
45
submitted 1 month ago* (last edited 1 month ago) by Eibriel@sopuli.xyz to c/godot@programming.dev
 
 

I'm so happy about how this script that generates a roller coaster track from a Curve3D turned out!

You can find the code on GitHub.

Be sure to download track.gd, track_generation.tscn and meshes/track_sleeper_rollercoaster.res and fix the path to the mesh on the code.

The roller coaster will be part of my game horror Delta Park , adding to the creepy atmosphere.

43
 
 

Hello everyone! We continue the series of effects that we can apply to a selected texture or even the entire screen. This time, we will create a simple effect of breaking an image into hexagons, shifting the crop in each of these tiles, and the final composition of the entire image or, conversely, the decomposition, which can be quite a useful function.

44
45
46
 
 

Hey everybody! This time, let's try something really simple, something that works more as a one-time effect, or an exercise for understanding some of the algorithms we often use in shaders. And who knows, maybe even such an unusual effect could find a place in some extravagant game.

47
 
 

Link to the PR that was merged for this: https://github.com/godotengine/godot/pull/97257

48
 
 

I posted this question on the godot forum, but that has been overrun by bots like crazy, it's all random characters, so probably some AI.

I want to edit the text of the current script editor without modifying the internal undo-redo of the editor.

So essentially I want this to be possible:

  1. User writes some code
  2. Program modifies it, maybe imroving the formatting and such...
  3. Program then reverts to previously written code
  4. User is able to undo their last code addition, without the programmatically inserted stuff to show up as the last undo-step.
49
 
 

I posted this question on the godot forum, but that has been overrun by bots like crazy, it's all random characters, so probably some AI.

I want to edit the text of the current script editor without modifying the internal undo-redo of the editor.

So essentially I want this to be possible:

  1. User writes some code
  2. Program modifies it, maybe imroving the formatting and such...
  3. Program then reverts to previously written code
  4. User is able to undo their last code addition, without the programmatically inserted stuff to show up as the last undo-step.
50
 
 

Hey everybody! As a complement to the shaders we used to generate rain or a star field, we will create some nice snowfall. It's true that I have already programmed snow once, but that was in a 3D scene and with particles. This time, I'll use a 2D shader, but with a nice spatial effect using several layers, as you can see in the background right now. Let's get to it.

view more: ‹ prev next ›