Questions tagged [godot]

Godot is a 2D and 3D open source game engine developed by 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
1answer
38 views

Lagging problem with chunk creation in Godot

We are developing a 2D game in Godot and we are stuck while trying to divide the map in chunks. Namely, the scene is a forest, where trees spawn positions were generated by noise: since the trees are ...
0
votes
0answers
27 views

Godot calling function twice

So I had a node with area_2d enemies. When a player hits any of the enemies, the on_enemy_area_entered signal calls the game over function which adds the coins ...
2
votes
0answers
18 views

Godot and getting files via HTTP

So, I am wanting to use Godot to get a (binary) file using HTTP and then either save it or, even better, turn it into a Resource in memory that I can use. It'll be WAV files that I'm getting in ...
0
votes
0answers
33 views

Shader: displacement map to the all screen?

I want to recreate this effect shown here So I tried recreating this shader from shadertoy in Godot: This is the my translation in Godot Shading language of the first shader I linked: ...
0
votes
1answer
42 views

How can I move and rotate an object along with another using vector math?

How can I move and rotate an object along with another using vector math? This is using Godot 3.1 using a KinematicBody2D as a ship with a ...
0
votes
0answers
26 views

How can I use StreamPeerSSL with Godot (server-side)?

I am trying to implement encryption for my game. The encrypted data will be handling authentication to the server and chat data. In order for StreamPeerSSL to work, I have to wrap it around ...
4
votes
1answer
128 views

How do I let people make Steam Workshop mods for my game?

I want to know how to make a game compatible with Steam Workshop. Basically, I want to be able to let players make mods for my game. Using Google, I keep finding tutorials for how to make mods for ...
1
vote
0answers
88 views

2D Shader for affecting lights based on y-distance

I've been struggling with this problem for a few weeks (mostly because I'm so new to shaders), but I have an angled camera for my 2D game that uses lights. I saw this link about the '3D light ...
0
votes
0answers
32 views

How can you set a clipping mask for drawing operations in Godot?

I'm trying to draw a line that looks like this: I'm hoping to achieve this by drawing a line like this: and then somehow clipping it with a rect to look like the line above. I'd like to use the ...
1
vote
0answers
55 views

Developing Cartography for Simulated Land Navigation or Orienteering [closed]

Request to know what the best approach for developing a simulated Large 1:75,000 or 1:50,000 scaled map using GODOT or another game engine. My goal would be to create a 3D world that allows the player ...
-1
votes
1answer
299 views

How do I fix this “identifier is not declared in the current scope” error?

I got this identifier inputevenmousebutton is not declared in the current scope; should I use another identifier? ...
0
votes
1answer
144 views

Fixing error(23, 2) Error parsing expression, misplaced: func

When I try to use the GDScript code below, Godot gives me the error: error(23, 2) Error parsing expression, misplaced: func Why am I getting this error, and how can I fix it? Is there another ...
0
votes
2answers
52 views

Add force to objects while inside area

I'm currently trying to create an area that would somehow push objects to a specific direction. (and also apply angular drag if possible) I'm currently new to Unity and Godot. I have already seen ...
1
vote
1answer
53 views

Non-Uniform Random Placement of Sprites

I'm creating a space game in Godot that has procedurally generated nebulae. A nebula is comprised of between 50 and 200 child particles, all with the same shader assigned to them which creates an ...
0
votes
0answers
46 views

Godot 3.1: How do I instance a script?

I have a Paddle scene with an attached script. Within my game I want 2 paddles, one on the left and one on the right. I can instance the Paddle scene into LeftPaddle and RightPaddle no problem, but ...
0
votes
0answers
32 views

How can I get from which node a signal was recieved?

I want to simplify my code for a scene I have that could have many buttons which each have similar behavior. One solution I thought of was to connect to each of the buttons and their signals and just ...
0
votes
0answers
60 views

Godot: Using an argument's methods as kwarg

I downloaded and tried out the Rakugo addon out of the box and I ran into this problem: 'Parser Error: Identifier 'node' is not declared in current scope' If you look you can see that node is an ...
1
vote
1answer
82 views

How to compile custom module for iOS in Godot3.1

I'm trying to add Share module in my game for iOS platform. i have this repo for sharing module Godot-Share. I'm using godot 3.1 and i download latest godot source code from Link. To implement share ...
2
votes
1answer
74 views

Facebook login using Godot 3.1 in iOS

In my game I have to integrate Facebook login. I searched about custom modules and all. I found one but it not working in ios and its for older version. Any help would be appreciated
1
vote
2answers
278 views

How to connect multiple Godot 3.1 clients to a websockets server?

I'm trying to connect multiple players ( godot clients) to 1 nodejs server and it's the second client would not connect. The first client connects, not the second. All the relevant tutorials and ...
1
vote
2answers
159 views

How to guarantee that player fits rooms of a cave created by Cellular Automata?

I've implemented a cellular automata algorithm to generate a cave for my game and now I need my player object, which occupies 3x3 tiles in total, to be able to pass between the rooms. The problem is ...
2
votes
1answer
65 views

How would I rotate my billboards parallel to the camera view?

I'm trying to make my own space-sim in Godot and I'm stuck trying to get the visuals of the "starfield"-effect that is a staple of the genre. I'm using a Particle system with billboards that would be ...
0
votes
0answers
99 views

How do I program a fan in a platformer game?

Fan physics I have a platformer game and want to have fans in it that blow in a given direction and if the player presses the jump button they can go even further. How do I do this? side note: I ...
0
votes
0answers
131 views

How to rotate after a rotation in Godot / GdScript?

This 3D mesh is rotated by 45 degrees on the Y-axis. The camera follows the same rotation, resulting in these images Now I want to make the mesh rotating parallel to the camera. That is, if the ...
0
votes
1answer
85 views

How to set Godot's events as handled

My root node adds a scene - GameScene - in it's _ready function: ...
1
vote
1answer
115 views

How to control jump strength by how long the player presses the jump button?

In a platformer game I am working on, I want my character to have controlled jumps. If I simply tap the jump key it will jump a just a little or if I hold it for a time it will jump higher. What do I ...
0
votes
0answers
47 views

Godot: How do I change my icon to my export

Changing My Icon I want to change the file icon to my exported project. After reading the official documentation and downloading and trying both versions of rcedit in the editor it did not work. ...
2
votes
2answers
141 views

Is it feasible to create a game in godot using little to no GDScript [closed]

I am trying to get more into game development, I have very little experience with it. I've been messing around a bit with the Godot engine and am slowly starting to understand it more. I have some ...
1
vote
1answer
165 views

Godot: How do I asign movement cost to tiles in a Tilemap?

Pathfinding I am trying to apply godot's Navigation to create a pahtfinding enemy in a Platformer game. I've read about a method to allow for pathfinding to take into account gravity. My issue is ...
1
vote
1answer
21 views

How to change the alpha of an uneditable LineEdit to 1?

I noticed that Godot changes the alpha of the LineEdit text when editable = false. I want the alpha to stay 1. What I'm trying to do here is let the user input a name and then when they press enter it ...
1
vote
1answer
28 views

How can I use pan gestures to zoom a camera in and out

I have the following scene tree for my player: They have a Camera2D as a child, which has a script attached to it. How can I make the camera zoom in and out as I ...
1
vote
0answers
82 views

How to export an IK structure created in Blender 2.8 to Godot 3.1?

I created this IK bone structure in Blender 2.8 and exported as .escn As you can see, in Blender it's working ok. Now, how to use it in Godot? I've tried export ...
0
votes
0answers
95 views

How to rotate parent and child nodes in Godot 3.1?

I trying to create a mechanic in which a group of sprites controlled by a parent (Area2D) node will rotate. Not in place, but like the face of a clock. Also in a counter clock wise direction. ...
1
vote
3answers
143 views

How to accurately capture the direction in which the mouse moves?

I used to play this game on Kongregate called Death vs Monstars. A tl;dp (too long; didn't play) explanation of the mechanics is that the character you control follows your mouse cursor. Your ...
2
votes
1answer
125 views

trying to create a triangle with procedural code

Using Godot3, I have a camera and added a MeshInstance node to the Spatial node and attached this script. Why am I not seeing any triangle yet? ...
0
votes
0answers
40 views

Godot: How do I instance a file?

File Instancing I am working with SMRT, a plug-in for godot engine. I have been wanting to switch out a language file with another as the game progresses. My problem is that I don't know how to ...
0
votes
0answers
31 views

(Godot 3.1) Help with sprite combination mechanic

I'm in a bit of a spot with a mechanic I want to implement for a grid based puzzle game. I've been trying to approach it through different means, but nothing so far has worked. Essentially, I have ...
0
votes
0answers
25 views

Godot: How to maintain constant inertia

Inertia If I have a platform moving vertically I want the player to jump onto it without it losing its motion and slowing down or stopping. I have tried looking at the settings to CollisionShape2D ...
1
vote
1answer
124 views

Godot 3.1: Moving sprites together after raycast2d Collision

I'm fairly new to Godot, but I've been programming games for a bit. I understand GDScript, but using it fully still escapes me. So i'm still learning/struggling. Anyway, I'm working on a sokoban ...
0
votes
1answer
50 views

Godot :How does the VisibilityEnabler work?

Visibility Enabler I'm confused about the use of the Visibility enabler node in godot. I've read the documentation and tried it out both stand-alone and as a child without success. I set the parent ...
0
votes
1answer
220 views

“Loaded resource as image file, this will not work on export” - what does this mean

I'm sure it is something unrelated is why my program won't work, but I still want to know: ...
2
votes
1answer
343 views

How can I reference C# objects in GDScript (and vice versa)?

I am using Godot Engine 3.0.6 Mono for Windows x64. I am prototyping the majority of my project in C# before I rewrite the game in C++ for release. I installed this plugin mostly to help with testing ...
0
votes
0answers
85 views

Godot - Is there a way to pass a specific subclass of Node to a GNative C++ class?

I have a GDNative class that looks like this: ...
0
votes
1answer
74 views

How do i make enemy tank to follow and face player tank?

I'm creating tank game demo , in game i want enemy tank to always face toward the player tank. I already check look_at() function but it will face immediately, i don't want that. I want enemy tank to ...
0
votes
2answers
171 views

Which is the fastest: shaders vs animations / animated images / pixel manipulation?

I'm quite newbie to shader programming. I use Godot engine and after I see what can be done with shaders (eg. http://glslsandbox.com/e#53172.0) I realized that I MUST learn it no matter how hard it ...
0
votes
0answers
12 views

How to control kinematics articulations via GDScript?

I have seen that Godot only plays an "animation", that is, it only executes the sequence that was pre-defined in the file (for example, a DAE made in Blender). For example, a rigging of a hand with ...
5
votes
1answer
252 views

Concept of “scene” in Godot, misunderstanding

Could anyone clarify a beginner's question in Godot? As in this 3D video tutorial (https://www.youtube.com/watch?v=-D-IcbsdT04), the guy creates one scene for the floor, another scene for the wall, ...
0
votes
1answer
44 views

How to add undulation to a constraint-based chain?

I have a constraint-based chain composed of segments where each of the terminal segments has a fixed position. My constraints are set up as follows: ...
0
votes
2answers
98 views

Godot 3: How to add images without creating scenes?

To add images, as far as I know you create a sprite in godot, but I don't want to do that, I'd like to do it pro grammatically using arrays, the reason is I'm creating a card game and I don't want to ...
0
votes
1answer
287 views

Godot: 'is_on_floor' problem

I have a character in a basic platformer game and am having trouble. Whenever my character stands over two tiles on a tilemap and appears to be directly colliding with them the character's ...