id
int64
26
1.02k
kind
stringclasses
2 values
task
stringlengths
55
283
source
stringlengths
24
141
messages
stringlengths
2.96k
29.5k
26
coding
How can I write a GDScript function that automatically loads the most recent crash log file and prints the backtrace starting from the "Program crashed with signal" marker?
tutorials/scripting/logging.html#crash-backtraces
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
32
coding
How can I use the RegEx class to extract all numbers from a text string and print them individually?
classes/class_regex.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
34
coding
How can I create a Godot 4 script that uses the ConfigFile class to save player names and scores to an INI-style file and then reload them into a dictionary?
classes/class_configfile.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
49
coding
How can I use GDScript to dynamically load a resource pack from a file next to the executable and then access a scene inside it as if it were part of the main project?
tutorials/export/exporting_pcks.html#opening-pck-or-zip-files-at-runtime
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
58
coding
How can I override the tooltip behavior in my Control node to display a custom styled label instead of the default one?
classes/class_control.html#class-control-private-method-make-custom-tooltip
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
60
coding
I need a GDScript for a Node3D that sets up a WebXR session with optional AR support and hand tracking, handling the transition from a 2D UI to the immersive viewport.
tutorials/xr/webxr_intro.html#setup
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
65
coding
How can I use the `@export_multiline` annotation to create an inspector property that allows me to edit a large block of text or an array of strings directly in the editor?
classes/class_@gdscript.html#class-gdscript-annotation-export-multiline
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
72
coding
I need a GDScript node that draws a curved arc between two exportable points instead of a straight line, using the semicircle method where the center is calculated as the midpoint between the points.
tutorials/2d/custom_drawing_in_2d.html#drawing-an-arc-between-2-points
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
85
coding
How can I implement a script for an AnimatableBody3D child of an XRController3D that follows the hand's grip position while using move_and_collide to prevent it from passing through physics objects?
tutorials/xr/openxr_render_models.html#render-model-manager-example
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
93
coding
How do I implement basic 2D character movement with collision detection in Godot 4 so that the player slides along obstacles instead of getting stuck?
tutorials/physics/using_character_body_2d.html#movement-and-walls
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
99
coding
How can I use `OS.create_process` to launch an external executable with specific command-line arguments and check if it started successfully?
classes/class_os.html#class-os-method-create-process
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
113
coding
How can I write a GDScript function that waits for a RichTextLabel to finish rendering and then positions a background panel to exactly match the label's visible content area?
classes/class_richtextlabel.html#class-richtextlabel-method-get-visible-content-rect
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
118
coding
How can I apply an exponential easing function to a variable in my GDScript script so it displays correctly in the editor inspector?
tutorials/scripting/gdscript/gdscript_exports.html#floats-with-easing-hint
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
128
coding
How can I implement a character movement system where a single mouse click sets a destination and the player moves toward it, stopping smoothly without jittering once the target is reached?
tutorials/2d/2d_movement.html#click-and-move
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
134
coding
How can I implement a custom iterator in GDScript that yields values from 2 to 5 using the `_iter_init`, `_iter_next`, and `_iter_get` methods?
classes/class_object.html#class-object-private-method-iter-init
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
145
coding
How can I convert a hexadecimal string back into a readable UTF-8 string using Godot's `PackedByteArray`?
classes/class_stringname.html#class-stringname-method-hex-decode
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
157
coding
How can I convert an angle from degrees to radians and then calculate its sine value using GDScript?
classes/class_@globalscope.html#class-globalscope-method-sin
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
170
coding
How can I write a GDScript function that formats a large integer like 12345678 for better readability using underscores, and correctly handles string escape sequences such as newlines and Unicode characters?
tutorials/scripting/gdscript/gdscript_basics.html#literals
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
176
coding
How can I iterate through the available variation axes of a variable font and print their names along with their minimum, maximum, and default values using GDScript?
classes/class_font.html#class-font-method-get-supported-variation-list
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
178
coding
How can I retrieve a cached white texture and apply it to a Sprite2D node in Godot 4?
classes/class_renderingserver.html#class-renderingserver-method-get-white-texture
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
180
coding
How can I use the AABB.grow() method in GDScript to dynamically expand a collision box by a specific margin when an object enters a trigger area?
classes/class_aabb.html#class-aabb-method-grow
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
184
coding
How can I programmatically create a full-screen triangle using an ArrayMesh in GDScript to optimize a complex fragment shader?
tutorials/shaders/advanced_postprocessing.html#an-optimization
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
192
coding
How do I configure a NavigationRegion3D in GDScript to bake a navigation mesh at runtime with specific agent constraints like radius and maximum slope?
tutorials/navigation/navigation_using_navigationmeshes.html#baking-a-navigation-mesh-with-a-navigationregion
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
198
coding
How can I use the `pingpong` function to smoothly oscillate a character's vertical position between the floor and a ceiling height?
classes/class_@globalscope.html#class-globalscope-method-pingpong
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
206
coding
How do I create a custom editor plugin that converts an ImageTexture resource to a PortableCompressedTexture2D via the inspector's context menu?
classes/class_editorresourceconversionplugin.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
207
coding
How can I create a Godot EditorPlugin script that draws a white circle at the mouse cursor position whenever the 3D viewport is updated?
classes/class_editorplugin.html#class-editorplugin-private-method-forward-3d-draw-over-viewport
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
214
coding
How can I extract individual path segments from a NodePath string in GDScript using the get_name method?
classes/class_nodepath.html#class-nodepath-method-get-name
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
218
coding
How can I write a GDScript function that uses `OS.get_name()` to print a custom welcome message specific to the current operating system?
classes/class_os.html#class-os-method-get-name
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
220
coding
How can I write a GDScript function that plays a specific animation when a key is held down and stops it when the key is released?
tutorials/2d/2d_sprite_animation.html#controlling-the-animation
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
222
coding
How can I retrieve an `Image` instance from a texture RID and apply it to a Sprite2D node?
classes/class_renderingserver.html#class-renderingserver-method-texture-2d-get
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
229
coding
How can I implement a character that moves along a calculated path while respecting the navigation agent's velocity constraints, similar to the provided GDScript and C# examples?
tutorials/navigation/navigation_using_navigationagents.html#navigationagent-script-templates
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
238
coding
How can I safely store and retrieve signed 16-bit integers in a Godot file using `FileAccess` while handling the overflow behavior of `store_16()`?
classes/class_fileaccess.html#class-fileaccess-method-store-16
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
277
coding
How can I subtract two `Vector2i` instances component-wise in GDScript to get a new vector?
classes/class_vector2i.html#class-vector2i-operator-dif-vector2i
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
293
coding
How can I retrieve a project setting while automatically applying any feature tag overrides specific to the current operating system?
classes/class_projectsettings.html#class-projectsettings-method-get-setting-with-override
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
294
coding
How can I create a custom node in Godot 4 that automatically registers itself in the Create New Node dialog and prints a message when clicked?
tutorials/plugins/editor/making_plugins.html#a-custom-node
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
314
coding
How can I restrict a player's movement speed to stay between -10 and 10 using a built-in function?
classes/class_@globalscope.html#class-globalscope-method-clampi
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
319
coding
How do I define a custom signal in a GDScript node and emit it with specific arguments when a condition is met?
getting_started/step_by_step/signals.html#custom-signals
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
321
coding
How can I implement a WebSocket client in Godot 4 that connects to a server, sends a text message, and automatically prints any incoming data to the console?
tutorials/networking/websocket.html#minimal-client-example
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
323
coding
How can I implement a 2D bounce mechanic for a moving ball in Godot 4 so that it correctly reflects off surfaces using their normal vectors?
tutorials/math/vector_math.html#reflection
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
329
coding
How do I implement consistent movement speed in all directions for a 3D character controller while applying gravity only when the player is in the air?
getting_started/first_3d_game/03.player_movement_code.html#moving-the-player-with-code
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
332
coding
How can I generate a self-signed X509 certificate in Godot using a 4096-bit RSA key and a specific issuer name containing the common name, organization, and country?
classes/class_crypto.html#class-crypto-method-generate-self-signed-certificate
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
333
coding
How do I create a custom Android export plugin in Godot 4 that dynamically adds specific AAR libraries and modifies the Android manifest during the build process?
tutorials/platform/android/android_plugin.html#packaging-a-v2-android-plugin
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
343
coding
How can I implement a player controller in GDScript that rotates the sprite using left and right arrow keys and moves it forward based on its current rotation when the up arrow is pressed?
getting_started/step_by_step/scripting_player_input.html#complete-script
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
352
coding
How can I use the ZIPReader and ZIPPacker classes to list the contents of an existing ZIP file in an ItemList and then duplicate the archive by writing its files to a new ZIP?
tutorials/io/runtime_file_loading_and_saving.html#zip-archives
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
360
coding
How do I create a new script for a Sprite2D node that starts with a clean file, and what is the correct syntax to access its texture property in GDScript?
getting_started/step_by_step/scripting_first_script.html#creating-a-new-script
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
369
coding
How can I programmatically switch Godot's text rendering to the dummy interface to free up memory in a project where text is not displayed?
classes/class_textserverdummy.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
376
coding
How can I write a GDScript function that generates a random integer between 1 and 100 to assign a random level to a player?
classes/class_@globalscope.html#class-globalscope-method-randi
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
377
coding
How can I use `set_custom_interpolator` in a GDScript tween to animate a node's position using a specific `Curve` resource?
classes/class_propertytweener.html#class-propertytweener-method-set-custom-interpolator
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
380
coding
Create a GDScript function that uses the Expression class to safely parse and evaluate a mathematical string from a LineEdit node, displaying the result or any parse errors back to the user.
classes/class_expression.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
388
coding
How can I iterate through all translation messages in Godot 4 to print their untranslated strings along with their context if one exists?
classes/class_translation.html#class-translation-method-get-message-list
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
402
coding
How can I implement a simple UDP server in Godot 4 using `UDPServer` that listens on port 4242, polls for incoming connections, and echoes back the received data?
classes/class_udpserver.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
410
coding
How can I use `tween_method` to smoothly rotate a node from 0 to 90 degrees over 2 seconds while simultaneously changing its scale?
classes/class_tween.html#class-tween-method-tween-method
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
420
coding
How can I programmatically add a button to a SplitContainer's drag area so that it moves along with the split bar without blocking mouse interactions?
classes/class_splitcontainer.html#class-splitcontainer-method-get-drag-area-controls
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
450
coding
How can I use the `reduce()` method on an array of `Vector2i` to find the vector with the greatest length, similar to how `max()` works but with a custom comparison logic?
classes/class_array.html#class-array-method-reduce
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
459
coding
I need a GDScript function that checks if the physical spacebar is currently pressed to trigger a jump, ensuring it works regardless of my system's keyboard layout.
classes/class_input.html#class-input-method-is-physical-key-pressed
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
465
coding
How can I write a GDScript function to set a node's processing mode so that it only updates when the game is paused?
tutorials/scripting/pausing_games.html#process-modes
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
470
coding
How can I implement the `_can_drop_data` method in GDScript to verify that dropped data is a dictionary containing an "expected" key before allowing the drop?
classes/class_control.html#class-control-private-method-can-drop-data
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
485
coding
I need a script that moves a 3D character smoothly using physics while simultaneously updating a UI label to display the elapsed time since the last frame.
tutorials/scripting/idle_and_physics_processing.html#doc-idle-and-physics-processing
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
495
coding
How can I implement a script that listens for the OpenXR view recentering signal and automatically re-orients the player to face forward in the virtual world?
tutorials/xr/a_better_xr_start_script.html#on-pose-recentered
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
506
coding
How do I update the `AnimatedSprite2D` node in GDScript to automatically flip horizontally and vertically based on the player's movement direction?
getting_started/first_2d_game/03.coding_the_player.html#choosing-animations
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
508
coding
How can I implement a `_get_dependencies` function in GDScript that returns dependency strings formatted with UIDs, class names, and fallback paths as shown in the documentation example?
classes/class_resourceformatloader.html#class-resourceformatloader-private-method-get-dependencies
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
520
coding
How can I programmatically apply a simulated bold effect to a specific Label node using a FontVariation instance?
classes/class_fontvariation.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
521
coding
How can I override `_validate_property` in GDScript to make the `number` export read-only whenever the `is_number_editable` flag is false?
classes/class_object.html#class-object-private-method-validate-property
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
538
coding
How can I use the Geometry2D.bresenham_line function to draw a 1-pixel thick line between two Marker2D nodes in my scene?
classes/class_geometry2d.html#class-geometry2d-method-bresenham-line
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
544
coding
How can I invert the RGB values of a `Color` variable in GDScript to create a negative image effect?
classes/class_color.html#class-color-method-inverted
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
547
coding
How can I implement thrust and torque controls for a spaceship in Godot using `RigidBody2D` and the `_integrate_forces` callback?
tutorials/physics/physics_introduction.html#using-rigidbody2d
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
553
coding
How do I initialize the Native mobile VR interface in Godot 4 and enable the viewport for mobile VR?
classes/class_mobilevrinterface.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
554
coding
How can I dynamically change the default gravity value for a 2D world at runtime using GDScript?
classes/class_projectsettings.html#class-projectsettings-property-physics-2d-default-gravity
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
556
coding
How can I create a script that uses a Tween to smoothly transition a node's scale from 1 to 0 while applying a sine curve transition, and then automatically free the node when the animation finishes?
classes/class_tween.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
558
coding
I need a GDScript script for a `CharacterBody3D` node that defines movement speed and gravity properties, then calculates the input direction vector in `_physics_process()` based on four specific action names: `move_right`, `move_left`, `move_forward`, and `move_back`.
getting_started/first_3d_game/03.player_movement_code.html#moving-the-player-with-code
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
559
coding
How can I use `print_rich` in GDScript to display a warning message in red with bold text while ensuring it includes a stack trace like `push_warning()` does?
classes/class_@globalscope.html#class-globalscope-method-print-rich
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
576
coding
How do I configure a GDScript node to start monitoring camera feeds and automatically retrieve updated feed data when they change?
classes/class_cameraserver.html#class-cameraserver-property-monitoring-feeds
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
599
coding
How can I configure a custom User-Agent header in my GDScript HTTPRequest node to identify my application when fetching data from an API?
tutorials/networking/http_request_class.html#setting-custom-http-headers
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
603
coding
How can I multiply all components of a Vector4i node's position by a scalar value to get a floating-point result?
classes/class_vector4i.html#class-vector4i-operator-mul-float
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
614
coding
How do I dynamically pass variable values to a GDScript Expression object so they can be used in a calculated string?
tutorials/scripting/evaluating_expressions.html#passing-variables-to-an-expression
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
616
coding
How can I move a 3D character forward relative to its current orientation when the player presses the 'W' key?
tutorials/math/matrices_and_transforms.html#moving-an-object-relative-to-itself
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
620
coding
How do I create a Basis node in GDScript that represents a 90-degree rotation around the local Y axis using Euler angles, and what does the resulting Z axis point to?
classes/class_basis.html#class-basis-method-from-euler
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
622
coding
How can I implement a script that automatically pauses the game and emits a `focus_lost` signal when the OpenXR headset loses focus, such as when the user opens a system menu or removes the headset?
tutorials/xr/a_better_xr_start_script.html#on-visible-state
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
630
coding
How can I detect whether client-side decorations are enabled on macOS in Godot and dynamically adjust my UI layout to account for the missing window border and custom title bar?
tutorials/ui/creating_applications.html#using-client-side-decorations
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
639
coding
I need to create a `Main` node script that exports a `PackedScene` for mobs, connects the `hit` signal from a `Player` node to a `game_over` function, and automatically links the `timeout` signals from `StartTimer`, `ScoreTimer`, and `MobTimer` to their respective handler functions.
getting_started/first_2d_game/05.the_main_game_scene.html#main-script
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
659
coding
How can I override the `_compute_cost` and `_estimate_cost` methods in a GDScript script that extends `AStar3D` to use Manhattan distance instead of the default Euclidean distance?
classes/class_astar3d.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
661
coding
How can I create a property in GDScript that is automatically saved to the scene file when duplicated but remains hidden from the Inspector to avoid cluttering the interface?
tutorials/scripting/gdscript/gdscript_exports.html#export-storage
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
663
coding
How can I create a GDScript animation that moves a node named "Enemy" 100 pixels to the right over 2 seconds?
classes/class_animation.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
665
coding
How can I execute an FFmpeg command from within a Godot GDScript to convert an input video to an MP4 with a CRF of 15 and a veryslow preset?
tutorials/animation/creating_movies.html#converting-ogv-avi-video-to-mp4
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
670
coding
How do I properly handle the `_on_openxr_stopping` signal in a Godot 4 OpenXR plugin to detect when a player removes their headset versus when the game is closing?
tutorials/xr/a_better_xr_start_script.html#on-stopping-state
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
685
coding
How can I format a string in GDScript to replace multiple placeholders with an array of values, such as inserting a location and a rounded speed into a sentence?
classes/class_string.html#class-string-operator-mod-variant
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
690
coding
How can I write a GDScript function that extracts the leading integer from a string, ignoring any non-numeric characters that follow?
classes/class_stringname.html#class-stringname-method-to-int
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
696
coding
How can I make a `RigidBody2D` node randomly select and play one of three animations from its child `AnimatedSprite2D` when the scene starts, and automatically delete itself once it leaves the screen?
getting_started/first_2d_game/04.creating_the_enemy.html#enemy-script
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
702
coding
How can I implement a temporary "Game Over" message that displays for two seconds, transitions to a new prompt, and then reveals the start button after a brief pause using Godot's timer system?
getting_started/first_2d_game/06.heads_up_display.html#startbutton
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
703
coding
I need a GDScript script for a `MultiMeshInstance3D` node that initializes a 3D box mesh with 10,000 instances arranged in a line 20 units apart, while only making the first 1,000 visible initially.
tutorials/performance/using_multimesh.html#multimesh-example
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
706
coding
How do I override `_set()` and `_get_property_list()` in GDScript to create a custom editor property that stores its value in a dictionary instead of the node's actual state?
classes/class_object.html#class-object-private-method-set
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
709
coding
How can I customize the context menu of a RichTextLabel to remove the "Select All" option and add a custom "Duplicate Text" item that inserts the current text?
classes/class_richtextlabel.html#class-richtextlabel-method-get-menu
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
728
coding
How can I extract the subnames of a NodePath into a colon-separated string using GDScript?
classes/class_nodepath.html#class-nodepath-method-get-concatenated-subnames
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
754
coding
How can I implement a script that sends a POST request with a JSON body to a REST API and parses the returned JSON response to extract a specific field?
classes/class_httprequest.html
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
800
coding
How can I multiply an integer Vector3 by a float value to get a resulting Vector3 in GDScript?
classes/class_float.html#class-float-operator-mul-vector3i
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
803
coding
How can I programmatically change the default gravity vector at runtime in a Godot 4 project using GDScript?
classes/class_projectsettings.html#class-projectsettings-property-physics-2d-default-gravity-vector
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
807
coding
How can I ensure that dividing an integer by a float in GDScript always results in a precise floating-point number instead of an integer?
classes/class_int.html#class-int-operator-div-float
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
808
coding
How can I use the dot product in GDScript to determine if a character is facing toward or away from a target direction?
tutorials/math/vector_math.html#dot-product
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
817
coding
How can I implement a volume slider in a scene that adjusts the Master bus volume from 0 to 1 while ensuring the audio levels behave linearly?
classes/class_@globalscope.html#class-globalscope-method-linear-to-db
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...
820
docs
What does the `font_hover_color` theme property of the LinkButton class control in Godot?
classes/class_linkbutton.html#class-linkbutton-theme-color-font-hover-color
[{"role": "system", "content": "You are a Godot Engine 4 coding assistant for GDScript and C#.\n- Use search_godot_docs to look up any Godot class, method, property or signal you are not sure about. Use only APIs that exist in Godot 4; never invent them.\n- Write GDScript with static types, for example `func _physics_p...