Relative Content

Tag Archive for godot

Godot Grid Container Issues

I want to make a grid container that can hold ice floats & water tiles. The ice floats are also containers that can hold fish and penguins. My idea was to make the whole game board a grid container, and then add ice float grid containers randomly, each with a panel child component that is the ice float texture,(same with the fish). However, when I add textures to the ice floats nothing shows up, and the fish float texture is just showing up in the corner of the screen.

get_cell_atlas_coords returns (-1, -1) based on direction

I’m trying to make conveyors return tile data based on what is colliding with raycasts. I have it pretty much working, but with one issue. If the tile is colliding from the left or top raycast, it cannot find the tile and returns (-1, -1) here is what my code looks like:

Light texture causing a weir artefact in godot

I have a simple circular gradiant as the light texture, but when it illuminates the object the texture gets this weird outline. What might be causing this and how to make it go away?
Lights belndmode is set to mix and objects are only visible in light.

Emergency reboot button freezes game

I am trying to create an emergency reboot button that can be accessed in every scene of my game. For that, I put this code into my globals script.