2,411 questions
0
votes
0
answers
1k
views
How to fix 'Invalid access to property or key 'is_chaser' on a base object of type 'CharacterBody2D'.'
I am currently making a game of tag in Godot 4.3. I have a player that can be randomly assigned as a chaser/runner and a group of NPCs that can also be similarly assigned.
main.gd:
extends Node2D
@...
1
vote
1
answer
306
views
Softbody-like deformations for a character
I would like to create a controllable character which can react to impacts by deforming slightly. And the answer is probably that I need a softbody. The thing is, a softbody is unpredictable for me. I ...
0
votes
1
answer
95
views
How to remove CharacterBody2D from the scene after playing an animation? (Godot 2D)
I'm trying to make a character be removed from the scene after playing an animation. Do you have any ideas how this can be done? After the player enters the ‘DeathDetector’ (Area 2D), the animation ...
-1
votes
2
answers
43
views
update node3d cube.position inside Task.Run ? ( goal is to animate object in circular path.)
in godot 4.3 , c# .
i want to update gui or node3d object position inside Task.run.
end goal is to animate object. in circle path.
it also needs to be in the code.
using gui is not an option for me..
...
0
votes
0
answers
78
views
Godot Custom Module for iOS build
I’m fairly new to Godot and currently using version 4.3. I’m trying to create a custom module to integrate some iOS functionality that isn’t natively accessible in Godot. To get started, I followed ...
0
votes
2
answers
122
views
Attack animation freezes and does not return to idle or walking state
When I attack with the character, the attack animation happens but when it ends he stays frozen. The character literally doesn't go back to idle, and when pressed to walk nothing happens—he stays ...
0
votes
1
answer
158
views
Buttons in a scene inside another scene in a CanvasLayer can't be pressed
So I have an Inventory scene, where I have my UI and some buttons. In my main scene, I have a CanvasLayer so that all the UI follows the camera properly. However, when I put my Inventory scene as a ...
0
votes
1
answer
252
views
Dialogue Manager 3 (Godot 4) DialogueEnded event
I'm currently working on the dialogue system in Godot 4 using Dialogue Manager 3. I created a function "checkDialogueFinished" to check whether the dialogue event has ended already. Its ...
1
vote
1
answer
830
views
Godot error message "resource file not found"
When I open my project, the Output window displays the error message: "Resource file not found: res://some-path/some-image.png (expected type: Texture2D)
There was a png image that I used as a ...
0
votes
1
answer
498
views
Godot: how to get the displayed size of a Bitmap (TextureRect)
In Godot (V4), I have a TextureRect containing a 1000x500 Bitmap. I have put the TextureRect inside several different nodes (AspectContainer, MarginContainer, Control Node, etc), so I can resize the ...
0
votes
1
answer
151
views
DLLNotFoundException (e_)sqlite3
I'm exporting an Android game from Godot 4.4dev3 with SQLite and having issues getting it to work. It works on desktop. It always results in a DllNotFound error. I am only targetting arm64-v8a on the ...
0
votes
1
answer
54
views
How to detect movement for CharacterBody2D?
I am trying to create a 2D game with controls similar to Dota or LoL, and I am struggling with changing animations depending on if my character is moving or not
I tried this code in the movement ...
0
votes
1
answer
231
views
How to make controls overlap in Godot?
Specifically I'm trying to make a progress bar show custom text, but since it doesn't support that I'd like to overlap a label on top of it and have it display my custom text.
In XAML for example, ...
0
votes
1
answer
62
views
How could I add many buttons on VBoxContainer?
I have been trying to create a game of DOMINO. To do this I created an Inherited Scene to works as stone of DOMINO using buttons, then created a Principal Scene to add the buttons into a VBoxContainer ...
1
vote
0
answers
71
views
BodyEnter and BodyExit signal not working, GetOverlappingBodies is working
I am trying to set up my game to detect when my player character (CharacterBody2D) is moving over an NPC (AnimatedSprite2D with Area2D underneath it). Both have a shape etc and the layers and the ...
0
votes
1
answer
104
views
Parsing error when sending data from godot to api
I am using Godot version 4.1.4 to make an application. In it, I have some stories, and each page of each story contains text and an image. I am trying to use a RESTful API (Node.js) to add the data to ...
1
vote
1
answer
103
views
How do I rotate sprites by using polar coordinates in Godot 4.3?
I am aware that functions such as look_at() and rotate() are available.
I am doing a little experiment on Godot where I'm attempting to rotate my character's arm towards the cursor, by transforming ...
0
votes
1
answer
2k
views
How do I temporarily disable physics collision on a RigidBody in Godot?
I am both new to Stack Overflow and Game Development, so sorry if this question is stupid.
I am currently working on a game in godot where a player can shoot projectiles at enemies (oversimplification)...
4
votes
1
answer
987
views
C#: Callback code won't be generated, please add it manually
I'm working through a Godot tutorial and it asks me to create a signal for an Area2D's body_entered signal. However, I'm using C# instead of GDScript. When I go to connect a signal to a method, I get ...
0
votes
1
answer
93
views
Pixel text in Godot
I'm making a pixel art game, and I'm using the Pixel Perfect feature for that. Maybe because of this feature, my text is pixelated. Can you please tell me how to solve this problem? The sprites are ...
0
votes
1
answer
266
views
How do I shift the position of the nth object in an array to the position of the n+1th object
This is the function I made:
func insert_rect(new_index:int, old_index:int):
test_array.insert(new_index, test_array[old_index])
test_array.remove_at(old_index+1)
print("putting "...
1
vote
0
answers
111
views
Exporting Godot 4.2.2 project to Xcode, when building project in Xcode it gives error: Undefined symbol: _main
My Godot project runs fine, and I can successfully export the project to Xcode. When I try to build it in Xcode it gives me the error "Undefined symbol: _main". I did this a while ago and my ...
0
votes
0
answers
198
views
Memory management of Godot (C++) objects in C#
Introduction
Since the Godot.Collections objects are wrappers around C++ objects, we have to memory-manage them manually. For example, in the following test:
public override void _Process(float delta) ...
0
votes
0
answers
402
views
Godot & Dialogic 2 - How to add custom texture on dialog box
I’m new to Godot/Game Development and also to Dialogic 2. I need to add a custom texture (image) to a Visual Novel textbox, but I’m struggling with it.
I added a custom layer for the Visual Novel ...
1
vote
0
answers
73
views
adjusting scroll positions of a custom zoomable board in godot 4.3
About a week ago, I was trying to create a scalable TextureRect (as canvas) using the mouse wheel towards the cursor position, like those in Photoshop, Krita, etc.
I was able to set the scaling and ...