Godot

18 readers
1 users here now

A community for discussion and support in development with the Godot game engine.

founded 1 year ago
1
 
 

Hi, I posted my question in Godot Forums but I fear it's gone quickly into oblivion but I've been stuck on this for days, would love some help!
https://godotforums.org/d/36536-how-to-use-set-pixel-in-godot-4

func _create_texture():
    var pixels = 256
    #tex = Image.create(pixels, pixels, false, Image.FORMAT_RGBA8)
    imageTexture = ImageTexture.new()
    tex = Image.create(pixels, pixels, false, Image.FORMAT_RGBA8)
    imageTexture.set_image(tex)
    mesh.material_override.set("albedo_texture", imageTexture)

func draw_on_sprite(coords):
    tex.set_pixelv(coords, Color.RED)
    imageTexture.update(tex)

I can get the UVs alright, the mesh becomes black when the texture is set in _create_texture() but it never changes color. If I get_pixelv after setting it it does show that it's now (1,0,0,1) so I'm not sure why it's not showing in game. Any clue?

There seem to be quite a few changes from Godot 3 to Godot 4 in this area so most of the info online about it is outdated now.

2
3
 
 

hoping someone familiar with both the engine and the genre of izometric ARPGs can chip in. I'm embarking on a project to create a game of this style, but I've read that GDScript, while more intuitive, and perhaps easier to learn, is "slower" than either C# or C++. since I'm truly starting from scratch and would have to learn the coding language along with the engine, it would seem to make sense to learn whatever will best suit the type of game I am making, but if the difference is negligible, then the simplest language to learn and write in would win out.

Can anyone offer any insight?

4
 
 

A game jam for the fediverse community from July 14th to July 23rd! Anyone is welcome to join and all of the main communication about the jam will be taking place within the fediverse

Open sourcing games you make for it is recommended so people in the community can learn from what you did. Youll also be able to show off your game around the fediverse communities while the jams running and after it ends

More information can be found in the linked jam page as well as the button to hit to sign up

Hope you enjoy! :)

Team finder thread

5
 
 

With all the people coming in I wanted to highlight a couple other Godot communities on different websites in the fediverse that you can interact with from kbin!

[email protected] | Direct Link (shows all posts) - A Godot forum on lemmy

[email protected] | Direct Link (shows all posts) - An general gamedev forum on lemmy

@[email protected] | Direct Link - The official Godot account on mastodon (the non direct link seems to not work normally but it works if you open it in a new tab)

All of these can be followed and interacted with without leaving kbin as both lemmy and mastodon federate with it

6
 
 

Continuing with the daily questions to start some discussion. What are some games made with godot that you really enjoyed or thought were impressive?

7
 
 

Interested in posting something here? Heres a quick guide for how to do so!

If you are using kbin you should see a plus in the top right of your screen. Hovering over this brings up options for adding many different things such as a link, an article, etc.

Clicking add new link brings up options for adding a link and then text to go along with it that which will then be posted to the threads for the magazine you choose. (If you click the plus while browsing the godot magazine it will default to selecting godot, etc.)

Clicking add new article creates a new post in the threads which is essentially the same as add new link but doesnt have a spot to enter a url.

add new photo is the same but puts priority on an image upload on the bottom of the creation area and doesnt allow you to enter a text body or a url.

Clicking add new post creates a new twitter-style post in the microblog rather than having it get created in the threads. Kbin has a combination of both twitter mechanics (which federates (aka you can see posts from there and they can see posts here) with another fediverse website, mastodon) and reddit mechanics (which federates with another fediverse website lemmy)

Feel free to create some posts to get some activity going in here for the people migrating over!

edit: typo

8
 
 

Figure we can kick off some conversation here with a question! I personally really enjoy how small projects in it are (a jam game I made in Godot is about 10x smaller than one I made in Unity)

9
 
 

Thought I should add something as a start to the magazine!