We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
33 views

How to script sequential events in GameMaker?

I am wondering if there is an elegant way to script sequential events in GameMaker 2. In Godot 3.1, it is very easy to chain events together using yield() and ...
0
votes
0answers
18 views

Animations suddenly not working at all

I have three animations, "ShowHit", "WarningFadeInAndOut", "ShowGameOver". They were worked when I was made, but suddenly only "ShowHit" is working. I double checked the logic was correct so that it ...
0
votes
1answer
14 views

Stop current animation and re-play immediately?

When the player hit something, I'm playing hit animation from animation_player. However when player hit something while hit animation is playing, it just ignored and play previous hit animation. I ...
1
vote
1answer
9 views

body_entered signal won't emit when rigidbody collided to rigidbody

I have multiple rigidbody object floating away in the space. When they hit each other, they push away each. I want to destroy object if they hit something, but connect body_entered signal won't ...
0
votes
1answer
13 views

Can't change anchor position and TextureRect size

I'm making UI, and want to set anchor to middle of the image, but changing anchor from Layout -> Anchors Only or setting Anchor value directly doesn't work. The value was updated, but anchor point not ...
1
vote
2answers
27 views

How to wait until other script is ready?

I have two scripts, first is AsteroidSpawner script that literally spawns object named Asteroid, and second is HUD that control all UI related stuffs. There are some labels in UI, so I used onready ...
0
votes
1answer
15 views

Select a block of tiles from tilemap by click and dragging

I'm creating my first game in Godot 3.1, a top-down 2D sim game where you can build rooms on a space station. I am using a tileset I created inside a TileMap node. I placed a script inside the node ...
0
votes
1answer
42 views

Creating object in front of player, with some distance

I want to create objects in front of player with some distance, so that prevents hit with player immediately. So first, I get the global player position and direction vector which player towards: <...
1
vote
1answer
13 views

Disconnect signal that connected from script

I connected signal when a scene is instantiated. ...
1
vote
1answer
28 views

Change object's location at instantiated moment

I'm trying to instantiate object(scene) and set it's spawn position at the spawn time. Here's the code I wrote: ...
0
votes
1answer
20 views

KinematicBody returns null to try get collided Rigidbody

Player is a KinematicBody and enemy is a Rigidbody. I'm using move_and_slide() to move player. When they collided, each both push them opposite direction, so it seems like physics stuffs working, ...
2
votes
1answer
80 views

No AA support in Godot 3.1?

I'm using Godot 3.1.1 and just realized that there is no available AA options. According to some post, Godot 2 supports FXAA, but some reason it's took out from 3. So I try to get FXAA for Godot 3.1, ...
0
votes
1answer
27 views

After rotated by Z-axis, X/Y axis still rotating just like z is 0

I'm making aerial vehicle controller, which can rotate 3 axis: X(Pitch), Y(Yaw), Z(Roll). Rotating x(pitch) and y(yaw) axis works fine, however after I rotated z(Roll) axis, x/y rotation gave me ...
0
votes
1answer
22 views

Updating RigidBody rotation and velocity only updates it's rotation

I'm currently making spaceship controller script. Control is simple, W/S to move forward/backward, A/D/ to rotate ship by Y Axis(yaw). Spaceship is RigidBody node and has CollisionShape as children. ...
0
votes
1answer
19 views

Changing node's translation affects to sibling node

I have a node which looks like this tree: FPSController (Root node, and it's KinematicBody) CollisionShape Camera GroundCheckRayCast When I moved CollisionShape's location down, camera also going ...
0
votes
1answer
23 views

RayCast node always return null

I'm using RayCast node to check the object is grounded. Here's the setting: RayCast node is placed near by ground and the length enough to collide with ground. Also RayCast node is enabled. RayCast ...
0
votes
1answer
26 views

Get project's gravity value in Godot

I need to get access project's gravity value which set in Project Settings -> Physics -> 3D -> Gravity, however I couldn't find any related information about this. How do I get project's gravity ...
1
vote
1answer
50 views

I cannot move my player to right on Godot

I'm beginning with Godot making a simple Sprite which should move both left and right but when right key is pressed the KinematicBody2D doesn't move right. ...
0
votes
0answers
17 views

Add touch screen support to tile navigation

I saw this awesome tutorial that is related to Grid-based Movement in Godot What I want is to add touch screen support for this kind of movement i.e. with virtual on screen joystick or gestures. How ...
0
votes
2answers
40 views

How to use Animation Player in Godot like Animated Sprite

So currently I am using the following code to play my sprites (AnimatedSprite Node). $Sprite.play("Animation Name") However now I want to use the AnimationPlayer ...
0
votes
1answer
42 views

Godot: how to use _draw to draw textures at an angle

So simple question that I just can't find an answer to, how do I use Godot's _draw function to draw textures rotated at an angle (more specifically how do I get them turned completely 90° onto their ...
0
votes
1answer
31 views

Godot Animation only playing First Frame

I have tried checking if it is already playing, stopping animations before and putting it in a separate function. Whenever I jump it should play 4 Frames of my animated sprite. But it only plays first....
1
vote
1answer
66 views

How can I create a patch of ocean that blends seamlessly into the horizon?

The tagline pretty much says it, but here's a picture to show the problem: The darker gradient of blue on the horizon comes from the Godot WorldEnvironment, while the lighter shade results from a ...
0
votes
1answer
36 views

In Godot, how to make a Kinematic body affectable by rigid bodies?

Background Info I'm currently following the FPS tutorial from the official site. By the end of Part 1, there is a Player object implemented as a KinematicBody and ...
0
votes
1answer
19 views

CenterContainer makes my button too small

I get the perfect width for my buttons, but CenterContainer overrides that value of theirs to make the button as wide as the biggest text length of the buttons when I put the buttons inside of the ...
0
votes
0answers
27 views

In godot, how could I make an explosion not destroy occluded terrain?

This game is in 2D, and is made out of blocks. Normally, I would simply erase blocks that aren't indestructible and are within range of the explosion. However, if blocks are behind something ...
1
vote
1answer
72 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
31 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
1answer
48 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
52 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
59 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
37 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
142 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
94 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
44 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
59 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
556 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
188 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
54 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
50 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
34 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
65 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
107 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
85 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
410 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 ...
2
votes
2answers
169 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
73 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 ...