CSharp Questions
1
Solved
Hi,
I have two Vector3 positions, one is the position of the player, the other is the position of the mouse in the 3D world. I am spawning a bullet at the player position and then Lerp-ing it to the ...
Botanize asked 9/12, 2023 at 12:33
1
Hi im'a newbie,
I'm developing a top-down shooter game in Godot, and I currently have a working function within my Player class that enables shooting every 0.5 seconds. While the current implementati...
Rogatory asked 9/12, 2023 at 9:7
2
Hello. I'm new to Godot, and I've created a simple dungeon generator. It generally works well, as it avoids repeating rooms; however, I've encountered issues where rooms aren't always connected or are...
Divinadivination asked 6/12, 2023 at 21:24
2
Solved
Hi,
I'm trying to raycast and have the following function:
`public override void _Process(double delta)
{
PhysicsDirectSpaceState3D space_state = GetWorld3D().DirectSpaceState;
Vector2 mouse_po...
Sallie asked 26/11, 2023 at 18:57
3
Hello all, i am quite new to Godot, never really spent time in game development beforehand. Currently im building a City Building game, first i did most of it in GDScript, though now i moved most of i...
Minsk asked 25/11, 2023 at 7:39
1
So I have two classes one called Alien that extends from class Area3D and one called ShieldAlied that extends form the base Alien Script, however when I try to run my game, it crashes with error "Scri...
Mathildemathis asked 22/11, 2023 at 22:7
1
I used Godot engine 4.2 RC.1 mono version
with .NET 7 try to export my project on android.
The game displayed 40 frames on my Samsung Galaxy A12.
I took another test on Samsung Galaxy A70, But get the...
Buckler asked 20/11, 2023 at 5:18
5
Solved
Hello!
I'm a beginner and i got stuck on my project trying to smooth the movement of my character using the lerp function. I read the documentation again and made a new simple project with one simple...
Pointillism asked 16/11, 2023 at 19:54
3
Solved
I don't understand why I got this error: No overload for 'playAudioSound' matches delegate 'Tween.StepFinishedEventHandler'
Maybe this is a bug?
Airsick asked 17/11, 2023 at 13:16
5
Solved
How can I ignore the MouseEntered and MouseExited signals for any Area2D nodes that are under an UI element? I know I can use the _UnhandledInput method to ignore e.g. mouse clicks on an object that i...
Transmarine asked 15/11, 2023 at 18:12
2
.
Bondwoman asked 11/11, 2023 at 12:5
6
Solved
I'm using a CharacterBody2D in Godot 4 and my movement is mostly working the way I want, but I'm still having difficulty with ascending slopes.
At first I thought it was just something related to m...
Mudlark asked 12/10, 2023 at 22:36
1
Hello, for some reason Visual Studio which I have set up to work with Godot (I can press f5 to run the game) no longer handles errors or breakpoints correctly, with no apparent change from me (apart f...
Ruskin asked 13/10, 2023 at 14:43
6
Solved
Hi, I found the set_default_cursor_shape function in the Input docs, but it doesn't seem to do anything:
Input.SetDefaultCursorShape(Input.CursorShape.Drag);
GD.Print(Input.GetCurrentCursorShape().To...
Marcellemarcellina asked 8/11, 2023 at 20:14
18
How do I know if the mouse is moving clockwise or counterclockwise? What algorithm should I apply?
Tobitobiah asked 8/11, 2023 at 19:32
2
I implemented AI looking but it is slow (slowly rotates towards the player)
LookAt(newVelocity, Vector3.Up, true);
I tried to use LookingAt Method for giving weight. But it didn't work properly.
Gl...
Crouse asked 7/11, 2023 at 20:0
1
Hello, I don't speak English well, I've just started to understand the Godot engine and I'm trying to write in C#. It is because of my poor knowledge of the language that I am writing here now. The p...
Breeder asked 6/11, 2023 at 19:33
2
Hello, what I'm trying to do in the code below is to perform object detection in a 3D scene by clicking with the mouse. In other words, when you click on the location of an object, it should be select...
Rosser asked 6/11, 2023 at 1:58
6
Above.
My spelling and grammar has always been excellent, that's not the problem.
Amelina asked 23/3, 2023 at 18:52
11
I have function in gdscript how call function from c#
Timmy asked 2/11, 2023 at 11:3
10
Solved
I have a GDScript to generate UV2:
tool
extends Spatial
export var prepare_for_baking = false setget toggle_prepare
func toggle_prepare(condition):
if condition == true:
for node in get_childre...
Abduct asked 30/10, 2023 at 11:45
3
Solved
Just first time using it, maybe someone had the same problem
Divisive asked 30/10, 2023 at 10:29
4
Attempting to implement a solution where classes, structs and more (types) could be substitutions for existing ones. So for example, I could have the following in code further down the line where the ...
Wavell asked 26/10, 2023 at 17:9
3
Godot.Collections.Array<ref Node> objectNodeReferences;
This is not valid syntax for C# to store references of a given node in an array for example. Is there any valid syntax for achieving this...
Divers asked 26/10, 2023 at 14:43
4
I am writing some ray-tracing code in C# for a game. The trace is supposed to beam from the camera view down towards wherever the mouse is pointing. While the ray-trace itself does happen correctly (I...
Murmuration asked 16/10, 2023 at 13:1
© 2022 - 2024 — McMap. All rights reserved.