Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
90 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 ...
-1
votes
1answer
38 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
2answers
36 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
3answers
81 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 ...
0
votes
1answer
59 views

Godot - How to set the AudioStreamPlayer to switch between tracks

Conditional Music Playback What's important here is that I know how to switch the track that's being played back to another if some condition is met in the scene. If possible I also want to know ...
1
vote
1answer
27 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
29 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
16 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 ...
2
votes
2answers
933 views

How can I get the specific tile in a collision with a Tilemap?

I am developing a simple platformer, I have three types of tiles right now: Floor: does nothing on collision. Bad: makes the player lose the game. Good: makes the player beat the game. I am trying ...
0
votes
0answers
26 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
37 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 ...
0
votes
2answers
73 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
1answer
19 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
0answers
32 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
2
votes
2answers
101 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 ...
0
votes
2answers
76 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 ...
1
vote
2answers
140 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
46 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
1answer
101 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: ...
0
votes
0answers
86 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
37 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
131 views

Programmatically created instance does not execute any code

I've created a new instance, positioned it, and added it to the scene like this: ...
0
votes
1answer
47 views

How to set Godot's events as handled

My root node adds a scene - GameScene - in it's _ready function: ...
1
vote
1answer
79 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
22 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. ...
0
votes
1answer
155 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 ...
1
vote
1answer
89 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
18 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
33 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
57 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. ...
2
votes
0answers
55 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
29 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
28 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 ...
1
vote
1answer
70 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
0answers
15 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 ...
0
votes
1answer
38 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 ...
2
votes
1answer
166 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
1answer
63 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
0answers
47 views
5
votes
1answer
180 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
2answers
126 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
8 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 ...
3
votes
1answer
174 views

How to create a wavy beam?

I want to implement a wavy laser beam similar to the Proton Backpack in Enter the Gungeon. https://youtu.be/wl-o6gbMqFM?t=58 It's easy enough to draw a line from one point to another, but how to get ...
0
votes
1answer
39 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
0answers
37 views

How do i get effect when gems come together in godot?

I'm create gems puzzle game, In my game there is requirement that 2x2 matrix gem will group and then it will convert in power gem. check below image. I'm new in game development, so anyone can point ...
0
votes
0answers
71 views

How to stack shaders in Godot?

I have a CanvasLayer singleton that I am using for transition effects between scenes in my game. This CavasLayer contains a ...
1
vote
1answer
70 views

Godot: does parse_json accept multiple JSON objects?

If I had a JSON file that had multiple objects, can the method read through without some form of exception?
1
vote
0answers
76 views

Playing an animation in Godot

I have been working on making a platformer in Godot but can't seem to get a walk cycle to play when I press left or right. ...
1
vote
1answer
785 views

Why Godot over Cryengine, UE4, Armory3d or Unity3d? [closed]

Godot have a low performance in linux systems and lack of functionalities? This appear not been in account when peoples vote for him over other engines and i wonther whi. I know it is under MIT ...