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
0
votes
0answers
6 views

Godot Mono cannot find .NET framework 4.7

I cannot get anything to compile in Godot Mono using C#. It keeps giving me the following error: The reference assemblies for framework ".NETFramework,Version=v4.7" were not found. To resolve this,...
0
votes
0answers
8 views

Godot 3.2 atlasTexture not creating any texture atlas

When I try to use the new feature of godot that lets you import sprites as an atlasTexture, I dont' get any results.
0
votes
0answers
22 views

How to make a 2d game with Ascii art assets

I am new to game development and have been practicing programming games in godot. I am looking to make a minimalist game that uses simple ascii art however I am unsure if I should use UI elements to ...
0
votes
0answers
11 views

How do I get my camera movement fixed?

My problem is that my game is made for a 320 by 320 window. When I try to upscale it I run into problems. The camera's movement is all wrong. When it snaps to a new position it snaps to a grid ...
0
votes
1answer
48 views

Godot: How do I get the id mask for a physics layer by name?

I would like to figure out whether a collider is in a physics layer by the name (string) I set in project settings: ...
2
votes
2answers
59 views

What would be the best way to create a cone representing the field of view of an entity in Godot Engine?

I would like to create a game in which PC and NPCs would have a field of view, shown as a cone in the front of the entity (see picture for an example). As it would be the first game I develop using ...
0
votes
1answer
63 views

Godot - Get button node in click event not working

How we can get the button reference on the event function that is connected? My connect signals never works ...
2
votes
2answers
85 views

How to troubleshoot Godot HTTPRequest latency?

I'm running a Django server on localhost, and Godot 3.2 is my client using HTTPRequest. If I make an HTTP request with HTTPie (or cUrl), I get a response in under 3 seconds. The same request is ...
1
vote
1answer
42 views

How to stop a signal from being sent

Currently i have three buttons that can be toggled with only one being active at once. When one button is selected by the player it sends a signal to the other two buttons to toggle off. Before the ...
0
votes
0answers
34 views

Does StreamPeerTCP guarantee received packet is same from server?

I'm making simple Godot project that works with Node.js server. To receive and send packet to Node.js server, I used StreamPeerTCP. First seems works, but after 2nd transmission from server, extract ...
2
votes
1answer
59 views

Is it possible to have a script built-in into a custom resource?

Here's a rudimentary custom resource: extends Resource export(Resource) var scr I can drag a pre-made .gd script into this exported property in Inspector, and ...
1
vote
0answers
58 views

Godot speed up mobile HTML5 Export GLES2 load time

I got a small Godot project that should be played on mobile devices, however the load time of a GLES2/ HTML5 export project of Godot takes 20+ seconds to load from the server. To decrease the load ...
0
votes
1answer
41 views

How to prevent top down sprite snapping during diagonal movement upon keyboard release

I have a sprite that faces 4 directions depending on input. This is all working well except for my keyboard input.. If I am pressing down-right at the same time on the keyboard and release both keys ...
0
votes
1answer
59 views

How can I match the delta rotations of two objects?

Here is the code I'm starting from: ...
2
votes
3answers
168 views

Godot 3.1: procedurally generating TileMap with AutoTiles

I'm making a start on a 2d top-down game in Godot, using a TileMap and OpenSimplex Noise to generate the terrain. It works pretty well, creating decent contiguous regions of different types of ...
2
votes
1answer
87 views

Godot 3.1.2: Black lines / borders around Sprite

In Godot 3.1.2 using OpenGL ES2, black borders/ lines seem to form around some sprites I have imported. Usually they appear on top of the sprite but can also "border" around it. Being new to Godot ...
2
votes
1answer
67 views

How can I load an asset from a file after I exported the build?

I am seeking possibility to switch character textures for game, even after I have compiled and built the binary. For example I have a troll with a Sprite from "/assets/texture1.png" Now after the ...
3
votes
1answer
88 views

Godot _on_Area2D_area_entered not detecting

In my Scene I have a Node2D. I then Instanced the Player and Area2D nodes. The Area2D has a signal pointing to itself that prints test when run. Here is the Code For the Area2D. Nothing happens when ...
0
votes
1answer
51 views

Can't find sibling node, keeps giving “null instance”

I'm trying to set it up so that there are three buttons but only one can be toggled at a time. So when one button gets toggled it makes sure that the other two are not toggled. The code is trying to ...
0
votes
1answer
43 views

Is it possible to move buttons or other ui elements over each other dynamically in Godot?

What im trying to do is have it set up so that if the player clicks on a character their ability's will appear on the ui, but i want to use the same ui space for the other characters as well. So is ...
1
vote
0answers
44 views

How to get an autotile in Godot 3.1?

I wonder if there's a way to get an autotile just like a single tile using a get_autotile() GDScript function or something like that.
0
votes
1answer
47 views

How to make a 3D mesh invisible in Godot?

Just like the title says i'm trying to make the mesh disappear after a set value reaches zero. Current code is trying to simply turn the entity invisible so that later i can implement a resurrect ...
1
vote
0answers
36 views

Godot: How do I edit the exe icons of other sizes

I asked this question on Godot Q & A: https://godotengine.org/qa/53521/godot-program-icons Basically, my problem is that I want My executable file's icon to display my own custom icon instead ...
0
votes
1answer
45 views

“ui is not declared in current scope” error

I just started development for a game I have to design for school. When using gd in the script to make the character move right I get an error: ...
1
vote
1answer
167 views

Simple message box in gdscript / godot

I want a single line of code which shows a popup dialog with the words "Hello World!" and an "Ok" button. (I want something simple for now, I know how to make something more complicated but that ...
1
vote
2answers
77 views

How can I get the NodePath that points to the property, rotation, of the parent node?

The 2nd arg in interpolate_property takes a NodePath, but str of a path to a prop seems fine too. So I'd expect this to work: <...
3
votes
1answer
128 views

I cannot save my game data on Godot Engine

I'm trying to save my game on Godot Engine by pressing a "save" button but I get this message error when i do: Attempt to call function 'get_nodes_in_group' in base 'null instance' on a null ...
0
votes
1answer
35 views

How can velocity be normalized after a collision if a projectile needs to maintain its height?

I want a thrown disc to travel along the same height, even after collisions. The problem is, there's an edge case that I'm not sure how to deal with. The lowest-tech solution would probably be to ...
0
votes
1answer
55 views

Handling multiple agents in astar pathing

When working with grid based path finding in how do you normally handle different agent types? In the game I am working on I have a regular agent, and one that occupies 2 cells on the grid, and one ...
0
votes
0answers
141 views

What should be the display configuration for mobile game in Godot 3.1?

I am developing a mobile game in Godot so I want to know what should be the display configuration to show the game it should be, I tried before a Web Game, and when it was played on mobile games it ...
3
votes
1answer
130 views

What does the Node2D transform property do?

Following a Godot tutorial I encountered the transform property, but I'm not sure what it means nor how to use it. I read the official Godot documentation, but it ...
1
vote
2answers
60 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
28 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
38 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
29 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
126 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
92 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
96 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
107 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
47 views

Disconnect signal that connected from script

I connected signal when a scene is instantiated. ...
1
vote
1answer
47 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
31 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, ...
5
votes
1answer
211 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
31 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
31 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
21 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
38 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
72 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
64 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
21 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 ...