Godot

6256 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

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
51
 
 

This shows up when there’s no value and disappears when you start to type

Works for Strings, Arrays of Strings and PackedStringArrays

52
12
submitted 1 month ago* (last edited 1 month ago) by GammaGames@beehaw.org to c/godot@programming.dev
53
 
 

It removes what you set as the prefix from the name for the variable in the inspector

54
 
 

You can nest as many subfolders as you want using this

55
 
 

From the description: "After years spent in Unity I have finally made the decision to move to Godot starting next year."

56
 
 

Hey everybody! And welcome to the last tutorial of this year. Of course, this is definitely not the absolutely final tutorial, as I will continue with a new batch of learning materials in January. So, how are we ending the year 2024? We will be implementing blobby objects, also known as metaballs. Yes, exactly what you see on the screen right now. So, let's get started.

57
 
 

@export_group("Text") is used to make a group and you can break out of the group using @export_group("")

58
 
 

This pops it out into a new window that you can move around separate from the main window (e.g. onto other monitors)

59
 
 

in this case I selected res so its showing everything in res on the right

60
 
 

*(unless the subfolder explicitly has another color set)

Useful for finding certain folders quicker

61
 
 

Putting a backslash after a part of the statement basically means ignore any newlines between this and the next characters so you can indent it however you want

62
 
 

Hi everyone! Let's add a simple effect simulating a TV signal disturbance to our collection. It actually resembles typical artifacts when playing recordings from a low-quality VHS tape, but it's up to each programmer to find a suitable use for it. And because it's a very simple algorithm with just a few lines of code, this video will be relatively short as well. So let's create it.

63
64
 
 

I am experimenting with creating a pixel-art mobile game in Godot. I am having trouble with the viewport size regarding the pixel art assets. I've learned that I should set the scaling mode to integer, which adds black bars to the screen. My plan to get rid of the black bars is as follows:

  1. Find a way to resize the main viewport dynamically in runtime
  2. Calculate, based on the device's size, what size the viewport should be
  3. Apply that calculation when appropriate

Before I even try to get a calculation like that going, I want to make sure I can change the viewport's size in the code, which I couldn't figure out myself. I have tried the following:

  • Changing the project settings in a _ready function: Does nothing
  • Changing the project settings in a _process function: Does nothing
  • Setting get_viewport().size in a _ready function: Does nothing
  • Setting get_viewport().size in a _process function: Changes the size of the viewport, but without expanding it
  • Setting get_window().size in a _ready function: Does nothing

What else can I try?

65
 
 

This lets you type parts that are differentiated from the other variables quicker while still having enough to smart pick it

66
67
 
 

Hey everyone! The end of 2024 is slowly approaching, so I thought it would be good to add at least one more post-processing effect before diving into something more complex next year. This time, it’s again about layering, with each layer shifted differently using a noise texture and rotation. With a bit of imagination, the result can resemble a painting where the colors have blurred and blended together slightly. Let’s take a look at how this algorithm works.

68
 
 
69
 
 

If you do this remember to free the old one (or have some way of accessing it) since the engine won't do it for you

70
 
 

Fly, dodge, and barrel roll your way to the win! Challenge yourself to beat the high score. Now with tons of maps to choose from and lots of replayability! Do you have what it takes to master the glide?

Playable the browser on PC. All feedback is welcome.

71
 
 

This is useful to see where specific prints are happening

72
58
submitted 2 months ago* (last edited 2 months ago) by recursive_recursion@lemmy.ca to c/godot@programming.dev
 
 
73
 
 

The team made a new page to see what they're prioritizing at the moment. Neat!

74
 
 

Alternatives to doing this would be to right click and then hit the close button or to use the hotkey for it (defaults to ctrl + w)

75
 
 

Missed some days due to exams but more daily posts should be happening now

view more: ‹ prev next ›