G
Sorry for the late reply - I came up with a conclusion after experimenting for a while. First of all, the Load now works! Although with many inconveniences… Apparently the code looks whacky, but this is how I end up after countless makeshift modifications. Might as well make a whole new project than keeping this to be honest, but the ideas provided was enough to get me here. By the way, I was using (res://) path for both saved file and initial file, just for the sake of debugging (so I can see…
G
Did you add this script as a global/autoload? If so, you should know that Godot creates a new instance of the given script/scene for an autoload, this is outside of any given scene so it will not have valid references to other nodes without some trickery. If you do want to use it as a global/autoload then you should add the timer as a child in a scene, and add the scene .tscn as your global, not the script .gd.
G
really truly sorry for the late reply, i actually only just now tested what you said because when i first read your reply i only noticed you asking where gravity manager was and i was doing something else when i saw the notification so i just changed the screenshot and went back to what i was doing sorry about that. but back on topic neither making the timer a child of Gravity Manager or making it an @export variable worked for me
G
I think the impression that finding some really smart code that was taught by industry experts would be really ruined when you find out that it was all AI generated. Steam has an AI tag, so perhaps digital assets should too. There was a big noAI movement amoung artists and musicians, and now coders. When you have coded solid for several months and discover that other people have just been running an agent - that is dissappointing. A lot of Coders created NPC’s in game companies using methods…
G
You can also define styleboxes with high corner radius and low maximum size if you want to avoid textures. In this case a 64px button uses 32px corner radius. Bump up the corner detail to get a smoother circle.
G
Try not sampling at whole number coordinates.
G
For someone who started the game development recently, is this the times opportunity of disaster? It is always a chance to start. It doesn’t matter what hardware. people made game sin C64.. people make games on a 200€ Laptop. It is only up to you.. AI per se is not the devil. It is the people working with it. “make me GTA 5” is different than “Can you copy and paste me those 20 functions from 10 files over into this 1 class”. A Helper instead of brain replacement Let say you want start your…
G
Godot Version 4.7.stable.mono Question I am trying to make a voxel top down 2d right now. I have done this multiple times before. It is the exact same logic. I am 99.8% confident that it is in the generate_map(). It generates and views in rings. it has worked before, but not in this draft. It is generating odd rings. extends Node var floor_id_map: PackedInt32Array var wall_id_map: PackedInt32Array var wall_health_map: PackedByteArray var floor_health_map: PackedByteArray var map_seed: int var…
G
A stupid game I made a few months ago: 2026 11 05 21 20 15
G
Godot Version v4.7.2.stable.mono.official Question Not new to programming/game design, but new to Godot. As part of learning it, I’m playing around trying to build various things to learn how things work, at the moment trying to build something like a top-down shooter where the player can collect different powerups that leave most of the player’s behavior the same but change the attack/animations they use. One option is to have all the data relevant to powers as a static or defined-on-load…
G
Got similar issue blending multiples textures, if i remember it’s a mipmap/derivative calculation bug caused by branching. You have to compute the derivative (dFdx, dFdy) early in your fragment function before textures are attributed (before if/else block) and feed them with textureGrad. Something like this: vec2 duv_dx = dFdx(UV); vec2 duv_dy = dFdy(UV); #Exemple then for underlying-soil creating it would look like, and do it for all texts. vec3 underlying_soil = textureGrad(soil_texture, UV,…
G
Godot Version 4.7.3 Question Hello ! I have some issue solving this problem, there is a low def halo arround my camera when i'm near the ground that appear, it also appear when near an elevation. The halo disapear if i deactivate mipmap, so i'm thinking it have something to do with that. I will try to modify mipmap options and hopefully find a fix but would be happy to know what actually cause this issue. Thank you very much Shader have elevation, is multiple blended textures with normal maps.…
G
The distinction to me is: are you posting here to communicate, to have a conversation, to learn and to explore? If you just post your game or resource to get traffic then I feel that’s not what this space should be for, but if you’re looking for feedback, for a conversation, then that’s what at least I want it to be for. That, to me at least, is what a forum is for
G
I think @athousandships hit the nail on the head so I kinda agree with @SpaghettiCoder above but would extend it. athousandships: this isn’t a billboard Perhaps, except for showcasing a game, this forum should only allow links to open source resources. As for filtering AI, tagging AI etc, I am not sure that is practically possible. If you are an AI slop merchant (and not all AI users are) the rules of a forum and common decency don’t mean much to you anyway. If you are wanting to sell something…
G
That looks like great advice, but I do not know whether I’ll make that kind of timeline. I have to stay true to what I set out to do: have joy in what I do try to spread joy in with what I do meet like-minded people from all over the world However much I would like to be a great success, or grab a great opportunity like this, I am not really very resilient to stress and deadlines. The reason I have managed to be productive with something is joy. That being said, after I round up the open epics…
G
They do basically the same thing in that code example. First they create the texture object. In the next line they create the noise object and immediately assign it to the noise property of the texture object. Way to go following the coding train btw. The conductor is a great guy. You can learn a lot there, keep to it.
G
The more I think about your project, the more I realize how important it could be in the next months. It has immense potential. With the upcoming trace renderer in 4.8 as the first lookout to the coming line renderer, it’s the perfect moment to jump onto it, and to base your development on that concept and help to build a cool line renderer base. With the target to render grease pencil in Godot, with animations and materials etc. The possibilities are endless. But it will not work with the SVG…
G
OOOH so that’s how objects work! The noise is an object which gets created, and then must be stored in a variable to be able to use it on another line of code. I think mainly looked at the NoiseTexture2D docs, and got quite confused what they were doing here: var texture = NoiseTexture2D.new() texture.noise = FastNoiseLite.new() await texture.changed var image = texture.get_image() var data = image.get_data() But now I understand how it works, and also that I shouldn’t declare it inside a…
G
You need to create an object of that class first and then call the method on that object using the dot syntax: var noise := FastNoiseLite.new() noise.get_noise_2d(...) Beware that if you assign the created object to a local variable inside a function, it will be destroyed at the end of function. So you want to store it in a class property you declare outside of any function: # declare a property that's available script-wide var noise: FastNoiseLite # create the object and assign its reference…
G
I’m not quite sure how to query a function inside an object. When I read what you just said my interpretation is this, but this is not functional so it’s not this: FastNoiseLite.get_noise2d()
G
You don’t need noise texture at all. You can query noise function in FastNoiseLite object directly by calling get_noise_2d() or get_noise_2dv(). Check the class reference for FastNoiseLite and its parent class Noise
G
If this would be my forum, I would ban all the “buy my slop posts”, because nobody on this forum is interested in those thing. It’s like creating a post to sell socs here on this forum (100% useless). PS: Sorry for al the gramar mistakes, english is not my native language.
G
Godot Version 4.7.2 Question Hi I’m trying to make marching squares algorithm following Coding in the Cabana 5: Marching Squares | Nebula , and I want to make the index values based on noise but I can’t seem to figure out how to sample noise as TheCodingTrain does. They are using Processing, but up to this point I’ve been able to successfully recreate the result in GDScript. As you can see I have already managed to make it based on a random integer of 0 or 1, but the goal is that I’m gonna…
G
Well it appears you’re calling it with a wrong type for the third argument. Check out function definition, see which type it expect for that argument and make sure that you call it with that type or a type that inherits it.
G
I just did that. Now another problem arises with the error ‘Invalid type in function ‘generate_data’ in base ‘StaticBody3D (Chunk)’. The Object-derived class of argument 3 (NoiseTexture3D) is not a subclass of the expected argument class.’ func generate_chunks(_pos: Vector3) -> void: var chunks: Vector3 = number_of_chunks for x in range(chunks.x): for z in range(chunks.z): for y in range(number_of_chunks.y): var new_chunk = chunk_class.instantiate() new_chunk.position = Vector3(x, y, z) *…
G
You’re calling get_image_3d() properly on the FastNoiseLite object but you’re calling get_noise_3d() on NoiseTexture3D object which doesn’t have that method. I suggest dividing that long line into several lines for better readability. And maybe name your texture argument noise_texture to avoid confusion with its property noise.
G
On the other hand the same docs say this as well: However, for the rendering and physics servers, thread-safe operation must be enabled in the project settings first. This makes singletons ideal for code that creates dozens of thousands of instances in servers and controls them from threads. Of course, it requires a bit more code, as this is used directly and not within the scene tree. I interpret “thread-safe operation must be enabled in the project settings first” as setting the rendering…
G
Yeah, I think that’s not doable via extension. Although Noise is a pure virtual class in C++, that doesn’t carry over to extension bindings. Funnily enough the Noise class reference says this: Inheriting noise classes can optionally override this function to provide a more optimal algorithm. Which is highly misleading, letting you think you could even do it from gdscript. The only way to inherit this is at the level of engine’s source code, i.e. it’d require recompiling the whole thing. Your…
G
Godot Version 4.6.1 Question So around a week ago I watched and followed a whole series about voxel terrain generation and was wondering if I could generate caves. so I tried to do a naive approach and just wing it and I now have an error when trying to run the game and either undo but that means no cave terrain which I cannot have. the problem lies here: func generate_data(chunk_size: int, max_height: int, noise: NoiseTexture3D, color_array: Array[Color]) -> void: for x in range(chunk_size):…