Godot

5885 readers
50 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 1 year ago
MODERATORS
376
 
 

Hi everybody! I'm back with another video for the collection of tutorials on game development in Godot Engine. This time, we won't be dealing with shaders or 3D models. Instead, I would like to focus on a possibly simpler but definitely no less important area in game development with the Godot Engine, and that is the user interface that would work correctly on every device and screen resolution. Let's get started.

377
 
 

Tool I found over on the godot discord

Builds your game and then lets you enter scripts to be run after it does so to do things like call butler to push it to itch

378
 
 
  • Manor of Mysteries
  • MetSys
  • 3D Pinball
  • Striving for Light
  • Exosoul
379
380
 
 

cross-posted from: https://infosec.pub/post/4337087

Here's a link to download

Really impressive for a first project in 2 weeks…

381
382
 
 

Hi again, friends of visual shaders! Maybe you remember that in previous videos that dealt with this topic, we were working only with fragments, and we were setting only the final color for pixels. This time, we'll finally get to a no less important function, which is responsible for modifying vertices and subsequently deforming the entire texture that the shader is applied to. As an example, I chose the implementation of a flag that ripples in the wind.

383
 
 

Some people asked for a devlog, so here's my experience working on GodotOS (not an actual OS by the way, just a program that resembles one). There's a new preview video inside and some more info on the project.

384
 
 

Been messing with Godot a few weeks ago, now I fired it up again and my project was marked as missing for some reason in the project list. Weird.

I cleared the missing project, imported it again (you can't do that with opening it at the same time?(1)) did some stuff, closed to Project Manager, the project is not in the list.

???

Reimported it again, closed to Project Manager again. Still not in the list. Restarted Godot, still nothing.

Any idea what could be going on? Using Godot 4.1.1 Stable on Fedora.

Thanks for any hints ^ __ ^

(1) The button says „Import and Edit“

EDIT: Lol nevermind, it's there, it's just called „Basic FPS“ for some reason and has a weird logo 🤦‍♀️

385
 
 

I was struggling with handling dialogue for a point-and-click game, has anyone tried Ink or other dialogue plugins? I tried both DialogueManager and Bonnie, and while Bonnie seemed nicer they both were kinda clunky.

386
 
 
  • Bare Knuckles Sandwich
  • CliffDivers
  • Garlic Builder
  • Memora Wanderer
  • Legendary Creatures 2
387
 
 

I'm making a fake operating system interface in Godot called GodotOS. Here's a sneak peek!

This is around 4 days of work. GodotOS is a proof of concept so I can learn more about Godot's UI systems. It's going very well so far. Right now you can open, minimize, and close windows while browsing folders and text files in user://files/.

My next goal (aside from adding more functionality) is to have viewports in windows so you can play games in your game.

388
 
 

There's so much negativity and fighting and shit talking in the comments over there. It's like some people have a personal goal of making others look stupid in comparison to themselves and they just try as hard as possible to rub it in if they know something you don't.

I really feel like the latest Unity migration brought over a bunch of chuds because the three Unity subs were like that before I switched to Godot. That subreddit is literally the only reason I still visit the site at all at this point and I'm just about done with it.

I was hoping more people would end up here, but this place isn't nearly as active. I do plan on posting more when I make some more progress in my own projects, but I personally don't have a whole lot to share right now.

389
 
 

I wanted to have an faster access to certain assets, so I created this addon which adds any amount of "Resource Browser" panels to the bottom bar.

Each panel has different config. You can add locations to search from via drag and drop, and filter files by extension (eg. mesh, tres) or type (eg. Mesh, Material).

Released it publicly if anyone else thinks it would be usefull. It's under MIT license.

390
391
392
393
 
 

Hello, friends of #Godot and its shading language. This time, I would focus on something slightly more complicated. We will simulate an old #CRT monitor with all of its imperfections. #GodotEngine #godot4 #GodotTips #devlog #shaders

394
 
 

@MartinXYZ@lemmy.ml had some dyslexic problems at https://lemmy.ml/comment/4564704

So I fired up Godot and obliged. And I managed to create a funny little game despite Long Covid. Have fun!

395
 
 

Recently updated my destructibles C# plugin for anyone who's interested, it makes it easy to convert shard scenes made with blenders fracture into packed scenes of rigid bodies + scaling, position and rotating them. They can be pre-generated before into a packed scene or generated during runtime with custom fade effects as well.

396
397
 
 

I'm following this tutorial for implementing translations into my game. While importing though, I get this block of error messages:

The csv I have in the file system contains this data:

and it uses UTF 16. It seems as if Godot expects a UTF 8 file for some reason, even though these files don't support speciala characters (which are used heavily in different languages). Does someone know what is going on here?

398
399
 
 

Hey y'all, throwing a little project together in Godot 4.1 to practice stuff I learned after a tutorial project. I've set up two markers as my projectile spawn points, but the shots are spawning slightly off from the markers and I can't figure out why. Code and pics below. ~~I "fixed" it by shifting the player sprite2D 5 pixels to the right. Not sure why the spawns are being offset though.~~ NVM that only fixed it at the starting position, the shots are way off when rotating. In editor you can see the markers at the two tips on the ship.

In game you can see the shots spawning just to the side of the markers.

Edit: I broke the formatting posting on mobile 🙃

This snippet is from the player script

` var player_direction = (Globals.player_pos - $FixedHardpointDirection.position).normalized()

if Input.is_action_just_pressed("fire_primary") and can_shoot and Globals.laser_ammo > 0 and hardpoint_type == 0:

	Globals.laser_ammo -= 1

	var hardpoint_positions = $ShotStartPositions.get_children()

	can_shoot = false

	$Timers/LaserTimer.start()

	for i in hardpoint_positions:

		player_shot_fixed_weapon.emit(i.global_position, player_direction)

`

And this is from the level script

` func _shoot_fixed_weapon(pos, direction):

var laser = laser_scene.instantiate() as Area2D

laser.position = pos

laser.rotation_degrees = rad_to_deg(Globals.player_rotation)

direction.x = cos(Globals.player_rotation)

direction.y = sin(Globals.player_rotation)

Globals.fixed_hardpoint_direction = Vector2(direction.x,direction.y)

print(Globals.fixed_hardpoint_direction)

laser.direction = Globals.fixed_hardpoint_direction.rotated(-1.5708)

$Projectiles.add_child(laser)

`

400
 
 

Introduction to Godot (not a tutorial)

view more: ‹ prev next ›