Questions tagged [godot]

Godot is a 2D and 3D open source game engine developed by the Godot Engine community. It features a built-in development environment which runs on Windows, macOS and Linux and can create games targeting PC, mobile and web platforms.

Filter by
Sorted by
Tagged with
1 vote
0 answers
25 views

What exerts a force on my rigidbody?

I'm trying to create a simple 2D scene with two rigidbodies, which are connected by two pin joints. There is one large rigidbody, a green circle, which is slowly rotating at a constant speed (as its <...
F-H's user avatar
  • 111
3 votes
2 answers
663 views

Godot: Spawn an object in 3D

I'm working on a FPS game in Godot, and I want to be able to drop a flare on the ground at the player's position. I created a scene with a "flare", which right now is basically just a sphere ...
AndyD273's user avatar
  • 161
1 vote
1 answer
62 views

Godot 4.2.1: Calling get_data() on Image from NoiseTexture2D Returns Null

I am trying to retrieve image data from a NoiseTexture2D. I seem to be able to get an image resource, but as soon as I try to get the associated data via ...
Haruto Kaito's user avatar
0 votes
2 answers
45 views

Disable all Player input in Godot 3?

I'm making an "Asteroids" clone in Godot 3.2.3 the way that the Bullet is spawned in-front of the Player ship is simple : the main game node will find the Player node's position and rotation ...
buzzbuzz20xx's user avatar
0 votes
0 answers
41 views

How to use resource that is already "in use" in scene

I started looking at a demo project in Godot (an included demo project for different particle effects), and there were GPUParticles2D nodes that spawned particles randomly along the white pixels of a ...
dekuShrub's user avatar
  • 101
1 vote
0 answers
24 views

How to use await with GDExtension-wrapped external library functions?

I am looking at wrapping functionality from an external C++ library with GDExtension for use with Godot 4. Many of these functions have an appreciable runtime before they return the values of interest,...
R.M.'s user avatar
  • 141
2 votes
0 answers
45 views

How to connect two rigid bodies, then displace them relative to one another?

I want to temporarily connect multiple RigidBody2D objects in a Godot 2D scene so they move together as one rigid body, and later split them up again. I have ...
O. R. Mapper's user avatar
0 votes
0 answers
57 views

How to make multiple variants of an enemy mob scene?

I'm just starting out in Godot 4. I followed this tutorial on how to create my first game, and I'd like to add some new features to make it more interesting, and start coding some stuff of my own. I'd ...
Whitehot's user avatar
  • 101
0 votes
0 answers
61 views

Huge gaps between my tile textures in Godot

The texture itself doesn't have any gaps in it. I don't know where these gaps are coming from. Someone suggested that I check if the sprite sheet's cell size and padding are correct. When I checked I ...
Hassan Shehzad's user avatar
1 vote
1 answer
56 views

Sobotka's AgX in Godot 4?

Is it possible to use a custom OCIO called AgX in Godot 4? Has anyone ever tried something like this and succeeded?
ThetaJones's user avatar
2 votes
1 answer
71 views

Pin object to the end of a rope

I'm trying to make a cool simulation where a rope swings with an object attached to its end. I've set up the rope using Verlet integration and used Hooke's law to attach the object. But here's the ...
Ainsley Harriott's user avatar
1 vote
1 answer
40 views

In Godot, how do I reposition the center of my mesh?

When importing a Unity package to Godot via Unidot importer, I noticed that a few imported models have their child rotations and transformations off-center from their expected points. For example, ...
needoriginalname's user avatar
2 votes
2 answers
119 views

Turn a 2D array into a 3D map

I have a C# script that creates a random 2D array that is a map for a cave system. Sample Map: ...
AndyD273's user avatar
  • 161
0 votes
0 answers
30 views

Animating horses and possibly other animals

I'm adding centaurs to my game, good thing Blender has an add-on for animating animals, horrible that when exporting to GLTF these animations get distorted and ruined during the export process... [...
Xenophile's user avatar
  • 101
0 votes
0 answers
94 views

invert:condition "det==0" is true error with no obvious cause

For my project I am turning my CharacterBody3D 90 degrees on the x-axis towards a wall. To achieve this I set basis.Z to the <...
NEWBIE's user avatar
  • 23
2 votes
1 answer
50 views

How to structure my composite (player) object?

While learning about the Godot engine, I am trying to write a simple spaceships game. A spaceship, as I have found out, can be defined as a scene of its own, with the following internal structure: <...
O. R. Mapper's user avatar
0 votes
1 answer
53 views

Path3d Offset from GlobalPosition

my path3d node is several meters away from the global position.My transform are not changed from their base setting. Code: ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
73 views

Turret following the player in the opposite side

i have tried using lookout method then flipping it by 180 degress but it gives me the same result as the problem i had before. my turret turns left when i move right and vica verse. To fix this i used ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
98 views

1px Font size too big for pixel art game - how to deal with this?

I have a pixel art kinda game that I'm building in Godot. I'm a newbie to both game dev and art. I have 32px high character sprites, with objects and the world scaled to be proportionate to those ...
WT_W's user avatar
  • 111
1 vote
1 answer
87 views

remaking Pong in Godot but the opponent AI cannot locate the ball's coordinate correctly

I'm following a detailed YouTube tutorial on remaking Pong in Godot 3.0 but I have ran into an issue regarding the way the AI opponent reacts to the incoming ball, what's happening is that the ...
buzzbuzz20xx's user avatar
1 vote
1 answer
56 views

How to pause player motion during an air attack animation in Godot 4?

So I am very new to Game Dev, and I am running into a problem that seems like it should have a simple answer. Unfortunately, I have not been able to figure it out. I am creating a 2d side scroller. I ...
Bobb Starling's user avatar
1 vote
2 answers
99 views

How do i get key input using c#

To change key configuration i need to get the key input but after looking around i havent found any way of doing that using c#.The other way is using the Gd programming language.but i cant do that as ...
NEWBIE's user avatar
  • 23
0 votes
0 answers
28 views

Multiplayer Entities And Player Storage Systems

https://github.com/Zylann/voxelgame/issues/103 How can entities and player storage work for this demo? Are there any examples or prototypes? Goal: Minecraft style entity and player storage system. ...
WithinAmnesia's user avatar
1 vote
1 answer
127 views

What is the correct way to stop a Godot dedicated server

So I'm trying to understand how multiplayer works in Godot and the docs are very clear when one application is the host and the other applications join the host. Now i want to have a dedicated server ...
LoonPie's user avatar
  • 78
1 vote
1 answer
31 views

Add Item for OptionsButton is Gone from the editor

When i added in a optionbutton for my hud i couldnt find a way to add items manually,this was weird as when i looked for a way,a button on top of the editor should appear but its not there? I dont ...
NEWBIE's user avatar
  • 23
3 votes
2 answers
2k views

I've hit the limit of what ChatGPT can teach me about game development in GDScript — what strategies can I use to keep making progress? [closed]

I felt like I had gained a decent grasp on core coding concepts (variables, if statements, loops) and I familiarized myself with Godot, so I wanted to start making small games to learn more by ...
buzzbuzz20xx's user avatar
3 votes
1 answer
51 views

Running a standalone Godot application on a Yocto 2.6 system with OpenGL3.0/ES2.0 hardware

I have an application that displays construction machines like excavators or snow groomers. The application is built on my company's custom engine, but I am trying to find out if I can port it to a ...
Kadir Erdem Demir's user avatar
0 votes
0 answers
64 views

Enemies not registering hits from the player in Godot

I am making a 2D game where the player can attack enemies using a designated Area2D node as an attack area. I set up signals to manage attack phases and ensure ...
buzzbuzz20xx's user avatar
0 votes
0 answers
45 views

Can I save blended animations as .anim?

I've got two animations, and they blend well. Can I save the thing as a singular .anim file ?
Xenophile's user avatar
  • 101
1 vote
1 answer
59 views

Issue with AttackArea Monitoring Before Attack in Godot 2D Game

I'm developing a 2D game where the player character can attack enemies using a designated attack area (Area2D node named AttackArea). I've encountered a problem where the AttackArea is active and ...
buzzbuzz20xx's user avatar
5 votes
1 answer
661 views

What causes some web game engines work in "slow mo" mode instead of reducing FPS but continuing to show the true time/tick state of things?

I used game engines that are capable of cross-platform export: Cocos Creator, Godot, Unity, others. Some game engines have this thing, called "physics update" or "fixed update". ...
idchlife's user avatar
  • 229
0 votes
1 answer
92 views

My CharacterBody3D Is getting blocked by ramps that act as walls

To summarize, my ramp is acting like a wall even if it is created to have a collision and mesh that fits its shape. I have tried: Putting the max angle to 90 using different ramps (CSG & mesh) ...
NEWBIE's user avatar
  • 23
0 votes
0 answers
66 views

StaticBody2D on body enter without Area2D

How can I get the body_entered signal on a StaticBody2D without an Area2D? I know ...
Salem Domani's user avatar
3 votes
1 answer
272 views

Checking if a node is of a given type in Godot 4

I want to check if the player is near a door. In practice, this means that I want to check if the Area2D of the player node overlaps a door node (an ...
Eldy's user avatar
  • 835
5 votes
1 answer
79 views

How would I switch an animation track between continuous and discrete mid-animation?

How could I set it so that an animation track switches update mode mid animation? For example, when I need to have separate parts of a sprite's image remain in place as the frame changes? An example ...
Programmer S's user avatar
1 vote
1 answer
50 views

Strange Marker2D behavior in Godot with barebones code

I'm new to programming in Godot but I've been playing around with things I've learned in various tutorials. That is, until I ran into the following issue which I can't seem to debug. I attached a ...
potatochopsticks's user avatar
0 votes
1 answer
60 views

How to make UI specific to players?

How can I implement a system in my application's user interface (UI) where certain UI elements are selectively visible to specific players, ensuring that each player, such as Player A, can exclusively ...
Xenophile's user avatar
  • 101
1 vote
1 answer
90 views

inserting 3d .obj into scene with godot code

I am trying to write some code, where upon running it will place a 3d obj. It is a tool to help build a map before game runtine. It is a simple 3d obj arrayMesh I am trying to add to a tscn file. In ...
nammerkage's user avatar
0 votes
1 answer
65 views

How to smooth out jagged stair step edges between polygons?

Working on a simple board game. The game renders the board with jagged lines. The models were built in Blender. Everything is .obj. The White part and the border are separate objects. I've tried ...
gNerb's user avatar
  • 111
0 votes
1 answer
242 views

Detect collisions with both parent and child nodes in Godot

Using Godot 4.2.1, I have a 3D scene with a CharacterBody3D as the root. It has two children; a child CollisionShape3D, and a child CharacterBody3D with its own collision shape. ...
devil0150's user avatar
  • 123
0 votes
0 answers
67 views

How to rotate Scene Collection TileSet

I am using a scene in a TileMap node, but I can't seem to be able to rotate it. I tried rotating it in code, but that doesn't work. I also tried rotating it in the editor using the TileMap node. Is it ...
TheJalfireKnight's user avatar
1 vote
0 answers
51 views

Flipped normals and texture flickering on Motorola and Samsung Android phones

What is happening to the textures when playing on the Motorola Android phone? Deleting and creating new materials doesn't work, the problem persists even with new materials, material overlay or ...
Atsinganoi Dragon's user avatar
0 votes
0 answers
58 views

How do I prevent godot exports from corrupting?

This is the second time it happens... the first time I didn't expect it so I lost a lot of work. I make a project, spend 40-60 hours on it, gives no error, works perfectly on the debugger... I export ...
Atsinganoi Dragon's user avatar
1 vote
1 answer
83 views

Techniques for VR controller input smoothing

I work on a zero gravity space VR game where player can hold to an object and rotate around it using their hand. Imagine spacewalk on ISS, grabbing a handle with your extended hand and trying to move ...
Patryk's user avatar
  • 11
1 vote
1 answer
67 views

How do I restore the cooldown time left I have previously stored?

Wether I convert the timer's .time_left to an interger or a float it always gives me an error saying ...
Atsinganoi Dragon's user avatar
3 votes
1 answer
393 views

Is there a way to instantiate a custom class decided at runtime in GDScript?

Can I instantiate a custom class during runtime through a String without knowing the value of the string when writing the code? Example: ...
Gidan's user avatar
  • 33
0 votes
0 answers
45 views

How to implement a server on Android during play

I'm developing a chess game for mobile. In Godot, you can set up a UDP connection with PacketPeerUdp. My problem is establishing a process that acts as a server and runs the already compiled (armv8) ...
NitaStack's user avatar
11 votes
3 answers
6k views

How can I structure my game like a "classical" program?

How can I setup a Godot 4 project in the way of a "classical" software project? With a Main function. Openable in any IDE. Compiling to an executable file ...
Zsar's user avatar
  • 235
2 votes
1 answer
86 views

I want to acheve this effect of trees changing texture based on distance to the player

The effect also applies to mountains and terrain, trees in the back look like shadows which with a dark sky look nice and in the day I can make them look like grey fog. I was thinking of simply adding ...
Atsinganoi Dragon's user avatar
0 votes
0 answers
72 views

How do i make the terrain texture less repeating?

question in the title no more to add, don't say "but it depends on how you set up your project" cause i'll set up my project how i need to set it up to solve the problem.
Atsinganoi Dragon's user avatar

1
2 3 4 5
12