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
0answers
17 views

Creating Blender-like cavity shader

I'm trying to achieve in Godot something similar to cavity effect from Blender (this can be enabled in viewport options; cube on the left is displayed by viewport with this option enabled): How would ...
1
vote
0answers
23 views

Godot Particles Randomly Turn Off

I have a particle emitter on a rocket just to simulate some smoke. The rockets can be free-fired or lock onto a target and gradually steer towards the target. There is an issue that I can't seem to ...
1
vote
0answers
33 views

Godot - Offscreen Target Indicator

I have a crosshair image that will lock onto enemies that are visible in the camera and will stay on the edge of the screen when the enemy is offscreen. This works until you face more than 90º away ...
1
vote
0answers
29 views

Drawing a line between 2 vectors

I was trying to implement a simple mechanic by drawing a line between the sprite and the mouse, but it's not working that well: ...
0
votes
0answers
33 views

Godot: Better Method to setting focus for buttons

My problem I am trying to set focus for a group of buttons with a keyboard or controller. Whereby if the user pushes up or down, a particular button will receive focus. I already know that this can be ...
1
vote
2answers
40 views

Add a sound to all the buttons in a project

Is there an option on the texture_button or something like that where you can specify a sound to be played on button-press. I have created a global sound_manager but for the button presses, I have to ...
1
vote
1answer
63 views

Why isnt setting the global_position working?

Previously my items were relative to the player by node hierarchy. But for items like bombs this is not ideal so i tried to add the items to the world scene, but when i try to adjust the position of ...
0
votes
1answer
73 views

Godot: How do I create a temporary invincible state or invincibility frames?

My issue I have been racking my head around how to achieve invincibility frames. Working in the Godot Engine I have considered a few methods for this: Setting a Timer Node when damaged to trigger the ...
1
vote
1answer
49 views

Godot: How to get mouse button input for a Tilemap for Cellular Automata

Conway's Game of Life I have been working with a tilemap for the implementation of a cellular automata game. My current method for getting mouse button input is using an Area2D as a child of the ...
1
vote
1answer
31 views

How can I change the default New Project directory in Godot Engine?

When I go to create a new project in Godot Engine (version 3.2) my Project Path is always the original default directory, no matter what path I last used. There doesn't appear to be any configuration ...
2
votes
0answers
52 views

Godot Procedural map, Need help to avoid overlapping areas

I have piece of code that using a tile set, i can draw an area of what is going to be a small town/city. The code seed_cities, make an X number of cities randomly on the map, whereas draw_city just ...
1
vote
1answer
110 views

How should I implement stair climbing?

Im using raycast to detect if a block is to my side. I can use raycast to see if i need to climb stairs but the transition is bad. I immediately reach the top of the stairs when trying to go on them....
1
vote
0answers
28 views

Vector2 distance_to weird results

I'm using Vector2.distance_to to get the distance between a MeshInstance and a KinematicBody but the results aren't as expected. I'm using ...
0
votes
0answers
39 views

What should I enter in Debug user and Release User in android export section in Godot?

I just want to export to android. I have tried by adding my name, I got install error.
1
vote
0answers
27 views

Dynamically Generated Mesh Not Visible Unless In Wireframe Mode

I'm trying to create a dynamic mesh using ArrayMesh but my mesh isn't visible unless I turn on wireframe debug mode. Here is a minimal example of a plane mesh consisting of 2 triangles (this script is ...
0
votes
0answers
37 views

How do i get a kniematic body to collide with my tilemap?

My kinematic body does not sense collision with my tilemap. Ive defined collision for the tilemap via the drag and drop collision boxes in the tileset. I dont know what could be the issue. ...
0
votes
0answers
21 views

Godot doesn't loop the sound

Basically it's the sound of a fuse for a bomb, until the timer sends the signal the sound should stop playing and play the explosion sound, but right now only plays once and the stop. What i did wrong/...
0
votes
0answers
41 views

Godot generated apk size too big

I have just started experimenting with godot. What I notice apk size generated by godot is too big which is 10MB considering fact my game does nothing it only moves some random blocks up and deletes ...
0
votes
0answers
24 views
2
votes
1answer
63 views

How do I get an unique hardware id with gdscript?

Using Godot Engine, I'm trying to implement digital rights management (DRM) using an uuid, and I want to get the user's MAC address. Is there an easy way to do this with gdscript? On Linux, I could ...
0
votes
0answers
27 views

Making a Rigidbody return to being level

I am working on a game where mouse input affects the torque of the RigidBody but I would like the Rigidbody to return to being level if certain conditions are met. Currently the angling working ...
1
vote
1answer
87 views

Godot 3.2 Bomb explosion doesn't affect player or npc

I finished the Godot 2D game tutorial Dodge the Creeps, and i'm adding a few additional features to reinforce the things learned and make more interesting the base game. Basically i added a Scene ...
0
votes
0answers
23 views

Trigger Android Activity with Godot?

I am new to Android programming and game development in android. What I require is to draw graphics in my App like draw a square and move it anywhere with touch, I could even scale it and later I will ...
0
votes
0answers
8 views

Clamp 2d not working in Main scene (Godot3.2)

In Godot3.2,clamp2d(Player) works in standalone scene but doesn't work when instanced in Main scene(both as Child node through Scene ui and as a Packed Scene ...
0
votes
1answer
25 views

Collision quadrant in godot appears

I am learning to use godot following this video: Collisions with Autotiles The problem is that when I create the collision for the cliffs using tilemap, it appears me a blue quadrant indicating the ...
0
votes
1answer
57 views

How to create pixel graphics in 3D?

I stumbled across this game on itch.io: Backland After trying to find information on how to accomplish the same graphics, I found this tutorial: Youtube Video How can I accomplish this 3-dimensional, ...
0
votes
0answers
29 views

How to fix collision detection error in Godot?

I am using body_entered(body: Node) signal to detect collision. But when it hits other objects it doesn't gets deleted. Neither it prints message in the console. What change can I make so that the ...
1
vote
1answer
62 views

How to do in Godot 2D: game screen in one viewport and minimap in another. Different sprites on each

The second day I google the tutorials, but nothing comes of it. All tutorials link to splitscreen demo, but it is made under the second Godot and does not work in the third. The problem is this: I ...
0
votes
0answers
19 views

Godot play video after file load

I used WebM video in my game but it's lagging. The audio is few secs delayed then video. Is there any way to load the video first then play so that the lagging doesn't occurs
0
votes
0answers
23 views

Help with Visual Studio for mac and Godot engine

I am total beginner in C#. Story(boring) Today I installed Visual Studio 2019 for Mac via the installer. I check want to install all (visual studio, .net core, xamarin iOS, android and Mac). After ...
0
votes
0answers
76 views

Prevent sprite from rotating with camera

I am creating a small 2d game and looking for a way, to prevent certain sprites from rotating with the camera. I could not find any settings that would allow me to do so, so my next best guess would ...
1
vote
2answers
29 views

Finding the line segments where 2 polygons share an edge

I am working on code to place doors between rooms on my levels. Rooms are lists of points which make up a polygon. In order to find a place for a door between two rooms, I need to find what line ...
0
votes
1answer
36 views

Normals are flipped

I colored normals with negative y red and here's what I get: Any idea why some normals are flipped? Here's simplified version of my code that add vertices, ...
0
votes
0answers
20 views

the identifier “icon” is not declared in the current scope [duplicate]

(Sorry if i have spelling mistakes i am Bulgarian) I have the problem that my "icon" isn't declared in the current scope. i am trying to add an object (body, collisionshape, and a sprite) this is ...
1
vote
0answers
23 views

Pan over an image like a map using scroll container in godot?

I want to create a level select screen, the aspect ratio for my game screen is 576*1024 and the image, I am using is 2048*2048. What I want is for the user to scroll the screen and navigate along the ...
0
votes
1answer
60 views

How to build TileMaps dynamically from a database?

The game I'm building allows users to create their own tile maps essentially, so I want the server to respond with tilemap coordinates if / when a user enters their custom world.
0
votes
0answers
29 views

In Godot 3.2.1 stable beta, in the 2D sprite shaders, how do I import a new PNG to test out those shaders?

I am using Godot 3.2.1. on Steam on Linux Mint. How do I take a pixel art image I've made and import it for using in Godot? I couldn't find it under Project.
0
votes
0answers
23 views

Creating a border on a tile?

I'm using Godot and I want to set an outline on the tile which is currently being hovered over, but I'm not sure whether to do it as a seperate tilemap which is hidden until it is hovered over or just ...
0
votes
0answers
79 views

How to use root motion to move a KinematicBody in Godot

I'm learning godot and so far it's been a delight! I am wondering how I can go about getting my player character to move. My "character" scene is set up as follows: ...
0
votes
0answers
194 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,...
2
votes
0answers
253 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
108 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
17 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 ...
2
votes
1answer
159 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
143 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
130 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
109 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
50 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
66 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 ...