1151
18

A game my brother and I are working on, made in godot.

1152
14
submitted 3 years ago* (last edited 3 years ago) by Ti_Ka@lemmy.blahaj.zone to c/godot@programming.dev

So far (outside of somehow adding it into Godot via C++ myself) this doesn't seem possible but wanted to ask to see if i maybe missed something.

The most i could find was this issue and a couple of related ones.

My specific use case would be for drawing bullet holes onto meshes (via decals). Ideally also being able to determine the texture used on the faces of the meshes that are intersected (to determine an appropriate decal to use).

Having everything that is possible to hit duplicated as a static body or area seems excessive to me. Since the only data required for ray intersection should be the transform of the meshes faces/edges/vertices etc which i would think are already contained in the mesh itself?

Failing being able to make intersecting a ray with meshes work i will probably try experimenting with using areas. They seem the lowest performance cost out of all the options the existing ray cast can detect. I would still end up with most of the games geometry being duplicated though, once as actual meshes and once as collisions for all the areas.

1153
10
submitted 3 years ago* (last edited 3 years ago) by cook_pass_babtridge@programming.dev to c/godot@programming.dev

Hi everyone, first time posting here. I was going to go to Discord but thought it's better to ask somewhere that can turn up on search engines for future confused game devs.

I've got a parameterised signal listener like this:

func _on_movement_to_exit_complete(character: Node2D):
	var f = func():
		print("_on_movement_to_exit_complete: "+str(character))
		var dungeon_tilemap: TileMap = dungeon_control.get_current_dungeon_tilemap()
		var party = dungeon_tilemap.get_node("Party")
		var initial_party = dungeon_control.get_parent().get_node("InitialParty")

		party.remove_child(character)
		initial_party.add_child(character)

		if party.get_child_count() == 0:
			for party_member in initial_party.get_children():
				var tilemap_movement: TilemapMovement = party_member.get_node("TilemapMovement")
				print("Disconnecting movement finished listener for "+str(party_member))
				tilemap_movement.disconnect("movement_finished", _on_movement_to_exit_complete(character))

			load_next_level()

	return f

Basically, if all the party members have exited the level (and been removed from the 'party' node) I want to disconnect this movement_finished signal from _on_movement_to_exit_complete. But when I try this I get an error:

E 0:00:07:0777   GameControl.gd:80 @ <anonymous lambda>(): Disconnecting nonexistent signal 'movement_finished', callable: <anonymous lambda>(lambda).
  <C++ Error>    Condition "!s->slot_map.has(*p_callable.get_base_comparator())" is true.
  <C++ Source>   core/object/object.cpp:1331 @ _disconnect()
  <Stack Trace>  GameControl.gd:80 @ <anonymous lambda>()
                 TilemapMovement.gd:23 @ _on_animation_finished()

Why doesn't it think movement_finished exists? Is there something wrong with disconnecting signals from inside their listeners? And is there another way of doing this? (Maybe something like a signal that fires once then disconnects?)

This is in Godot 4 by the way.

Also, is there a way to make the posting box wider in the programming.dev web frontend? It's really hard to work with pasted code here!

1154
22
1155
15
Showcase Sunday (programming.dev)

Welcome to Showcase Sunday!

Are you making anything in Godot? Feel free to discuss it below or show off your progress!

1156
8
1157
20

hello again, also i still cant really code....

Im not sure where to start becasue im more visaul learner so when i see godot's docs my brain exploids but that might be the only way. im not even sure if i should use godot and i recently got rpg maker 2003 from steam but i have yet to use it becasue im a bit intimidated. so how should one learn godot and which version should a beginner use? also shoudl i post a game if it stinks or should i wait to get better?

also if you have any tips for rpg maker also let em know.

1158
23
1159
18
submitted 3 years ago* (last edited 3 years ago) by Ategon@programming.dev to c/godot@programming.dev

Landnama, Voidspike, Lingo, Memortal, Chillquarium, Crawlscape, Too Many Sheep, Blank Relish, SpaceshipWrecked, Somnipathy

1160
7
1161
3
1162
10
1163
14
Using Aseprite with Godot (gamefromscratch.com)
submitted 3 years ago* (last edited 3 years ago) by Ategon@programming.dev to c/godot@programming.dev
1164
18
1165
19
submitted 3 years ago by simple@lemmy.world to c/godot@programming.dev
1166
12

Official mod support for dome keeper is out that will let you mod the game using gdscript

Theres a couple mods already out including a mod that adds a new keeper that I made

1167
13
1168
20
1169
13

Credit to one of the devs (Ste) for the description here

It's a generalized mod loader for GDScript-based Godot games.

The mod loader provides a convenient solution for users to create and distribute mods for your games in the form of zipped files/resource packs. The key feature is the ability to modify existing scripts without altering and redistributing the original game files.

Yes, we will port to Godot 4 soon. There hasn't been any demand for it yet, since the main games using it are on 3.5

Feel free to join our discord for questions, ideas, and support. https://discord.gg/J5AvdFK4mw

Two larger godot games that are using it currently are Brotato and Dome Keeper

1170
9
1171
15

Are there any pointers or resources you can give me to start out that can point me to the right direction to learn GDScript? I have no experience in coding in general and I’m looking to get started with Godot and using GDScript. Thank you.

1172
11
submitted 3 years ago* (last edited 3 years ago) by anthropocene@feddit.de to c/godot@programming.dev

I'm new to 3D and only messed with 2D before. Now I am trying to make a little game (or at least project) to learn. I added a skybox and got a texture from poly haven. This gray seam appeared and I have no idea why. I tried another texture just in case, but that also wasn't the source of the problem

This is the shader code I've got from a tutorial

shader_type sky;
uniform sampler2D skyTexture;
void sky() {
	COLOR = texture(skyTexture, vec2(SKY_COORDS.x + TIME / 500.0, SKY_COORDS.y)).rgb;	
}

Using Godot 4.0.3 stable
Does anyone know what the issue is? Thanks in advance

1173
14
submitted 3 years ago by Makuta@lemmy.world to c/godot@programming.dev

So I've been slowly implementing basic multiplayer to a demo project of mine, currently nothing special. I've made a few games in singleplayer and have a decent grasp on the engine in that regard, and so far things are going well with my demo project. Outside of Godot I have limited experience in networking, and often when studying multiplayer I read comments in regards on how some people will try to use games to compromise other users PC's and it's made me paranoid on continuing to learn how to develop multiplayer games.

Before I become dedicated in attempting to make a multiplayer game, I wanted to know some not-so-obvious do's and don'ts you may have in regards to creating a multiplayer game? I understand you want to put as much as you can behind the server and to trust the client as little as possible, but is there more to it than that? What are some ways to avoid making a product that can compromise user's computers? Are the official starter documentation guides to developing multiplayer games in Godot safe ways to begin a multiplayer project? I worry that because I am not savvy enough with networking that I will miss something fundamental and cause harm to hypothetical/potential players.

Thanks for any response

1174
39

11 hour long tutorial where he goes over pretty much all basic aspects of the engine

1175
14
view more: ‹ prev next ›

Godot

8067 readers
31 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 3 years ago
MODERATORS