Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringlengths
35
129
input
stringlengths
23
127
output
stringlengths
9
6.84k
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript This game uses Godot Engine, available under the following license: Copyright (c) 2014-present Godot Engine contributors. Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. Permission is hereby granted, free of charge, to any person obtaining a copy of this soft...
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript This game uses Godot Engine, available under the following license: Copyright (c) 2014-present Godot Engine contributors. Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
What important warning should I know about Complying with licenses in Godot?
Are there any warnings for Complying with licenses?
**Warning** Warning The recommendations in this page are not legal advice. They are provided in good faith to help users navigate license attribution requirements.
What important note should I know about Complying with licenses in Godot?
Are there any notes for Complying with licenses?
**Note** Note This section covers compliance with licenses from a user perspective. If you are interested in licence compliance as a contributor, you can find guidelines here.
What important tip should I know about Complying with licenses in Godot?
Are there any tips for Complying with licenses?
**Tip** Tip Alongside the Godot license text, remember to also list third-party notices for assets you're using, such as textures, models, sounds, music and fonts. This includes free assets, which often come with licenses that require attribution.
What important note should I know about Complying with licenses in Godot?
Are there any notes for Complying with licenses?
**Note** Note Your games do not need to be under the same license. You are free to release your Godot projects under any license and to create commercial games with the engine.
What important tip should I know about Complying with licenses in Godot?
Are there any tips for Complying with licenses?
**Tip** Tip Godot provides several methods to get license information in the Engine singleton. This allows you to source the license information directly from the engine binary, which prevents the information from becoming outdated if you update engine versions. For the engine itself: Engine.get_license_text For third-...
What important note should I know about Documentation changelog in Godot?
Are there any notes for Documentation changelog?
**Note** Note This document only contains new pages, so not all changes are reflected. Many pages have been substantially updated but are not reflected in this document.
What important note should I know about Frequently asked questions in Godot?
Are there any notes for Frequently asked questions?
**Note** Note Godot 3 also had support for Universal Windows Platform (UWP). This platform port was removed in Godot 4 due to lack of maintenance, and it being deprecated by Microsoft. It is still available in the current stable release of Godot 3 for interested users.
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript func _ready(): print("Hello world!") ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript func _ready(): print("Hello world!") ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript public override void _Ready() { GD.Print("Hello world!"); } ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript public override void _Ready() { GD.Print("Hello world!"); } ```
What important note should I know about List of features in Godot?
Are there any notes for List of features?
**Note** Note This page lists features supported by the current stable version of Godot. Some of these features are not available in the 3.x release series.
What important note should I know about List of features in Godot?
Are there any notes for List of features?
**Note** Note For information about console support, see the Godot website.
What important note should I know about List of features in Godot?
Are there any notes for List of features?
**Note** Note Linux supports rv64 (RISC-V), ppc64 & ppc32 (PowerPC), and loongarch64. However you must compile the editor for that platform (as well as export templates) yourself, no official downloads are currently provided. RISC-V compiling instructions can be found on the Compiling for Linux, *BSD page.
What important note should I know about List of features in Godot?
Are there any notes for List of features?
**Note** Note Projects written in C# using Godot 4 currently cannot be exported to the web platform. To use C# on that platform, consider Godot 3 instead. Android and iOS platform support is available as of Godot 4.2, but is experimental and some limitations apply.
What important tip should I know about Godot release policy in Godot?
Are there any tips for Godot release policy?
**Tip** Tip Upgrading to a new minor version is recommended for all users, but some testing is necessary to ensure that your project still behaves as expected.
What important tip should I know about Godot release policy in Godot?
Are there any tips for Godot release policy?
**Tip** Tip Updating to new patch versions is therefore considered safe and strongly recommended to all users of a given stable branch.
What important note should I know about Godot release policy in Godot?
Are there any notes for Godot release policy?
**Note** Note Upgrading software while working on a project is inherently risky, so consider whether it's a good idea for your project before attempting an upgrade. Also, make backups of your project or use version control to prevent losing data in case the upgrade goes wrong. That said, we do our best to keep minor an...
What important note should I know about Godot release policy in Godot?
Are there any notes for Godot release policy?
**Note** Note This section is intended to be used by contributors to determine which changes are safe for a given release. The list is not exhaustive; it only outlines the most common situations encountered during Godot's development.
What important note should I know about Godot release policy in Godot?
Are there any notes for Godot release policy?
**Note** Note When modifying a method's signature in any fashion (including adding an optional parameter), a GDExtension compatibility method must be created. This ensures that existing GDExtensions continue to work across patch and minor releases, so that users don't have to recompile them. See Handling compatibility ...
What important note should I know about System requirements in Godot?
Are there any notes for System requirements?
**Note** Note If your x86_64 CPU does not support SSE4.2, you can still run the 32-bit Godot executable which only has a SSE2 requirement (all x86_64 CPUs support SSE2). While supported on Linux, we have no official minimum requirements for running on rv64 (RISC-V), ppc64 & ppc32 (PowerPC), and loongarch64. In addition...
What important warning should I know about System requirements in Godot?
Are there any warnings for System requirements?
**Warning** Warning The requirements below are a baseline for a simple 2D or 3D project, with basic scripting and few visual flourishes. CPU, GPU, RAM and storage requirements will heavily vary depending on your project's scope, its renderer, viewport resolution and graphics settings chosen. Other programs running on t...
What important note should I know about System requirements in Godot?
Are there any notes for System requirements?
**Note** Note Godot doesn't use OpenGL/OpenGL ES extensions introduced after OpenGL 3.3/OpenGL ES 3.0, but GPUs supporting newer OpenGL/OpenGL ES versions generally have fewer driver issues.
Explain how to use the Color8 method in Godot's @GDScript
What does the Color8 method do?
The `Color8` method takes parameters: r8: int, g8: int, b8: int, a8: int = 255 and returns: Color. Color Color8(r8: int, g8: int, b8: int, a8: int = 255) 🔗
Explain how to use the assert method in Godot's @GDScript
What does the assert method do?
The `assert` method takes parameters: condition: bool, message: String = "". void assert(condition: bool, message: String = "") 🔗
Explain how to use the char method in Godot's @GDScript
What does the char method do?
The `char` method takes parameters: code: int and returns: String. String char(code: int) 🔗
Explain how to use the convert method in Godot's @GDScript
What does the convert method do?
The `convert` method takes parameters: what: Variant, type: Variant.Type and returns: Variant. Variant convert(what: Variant, type: Variant.Type) 🔗
Explain how to use the dict_to_inst method in Godot's @GDScript
What does the dict_to_inst method do?
The `dict_to_inst` method takes parameters: dictionary: Dictionary and returns: Object.
Explain how to use the get_stack method in Godot's @GDScript
What does the get_stack method do?
The `get_stack` method and returns: Array.
Explain how to use the inst_to_dict method in Godot's @GDScript
What does the inst_to_dict method do?
The `inst_to_dict` method takes parameters: instance: Object and returns: Dictionary.
Explain how to use the is_instance_of method in Godot's @GDScript
What does the is_instance_of method do?
The `is_instance_of` method takes parameters: value: Variant, type: Variant and returns: bool.
Explain how to use the len method in Godot's @GDScript
What does the len method do?
The `len` method takes parameters: var: Variant and returns: int. int len(var: Variant) 🔗
Explain how to use the load method in Godot's @GDScript
What does the load method do?
The `load` method takes parameters: path: String and returns: Resource. Resource load(path: String) 🔗
Explain how to use the ord method in Godot's @GDScript
What does the ord method do?
The `ord` method takes parameters: char: String and returns: int. int ord(char: String) 🔗
Explain how to use the preload method in Godot's @GDScript
What does the preload method do?
The `preload` method takes parameters: path: String and returns: Resource. Resource preload(path: String) 🔗
Explain how to use the print_debug method in Godot's @GDScript
What does the print_debug method do?
The `print_debug` method takes parameters: ....
Explain how to use the print_stack method in Godot's @GDScript
What does the print_stack method do?
The `print_stack` method.
Explain how to use the range method in Godot's @GDScript
What does the range method do?
The `range` method takes parameters: ... and returns: Array. Array range(...) vararg 🔗
Explain how to use the type_exists method in Godot's @GDScript
What does the type_exists method do?
The `type_exists` method takes parameters: type: StringName and returns: bool.
What tutorials are available for @GDScript in Godot?
Show me tutorials for @GDScript
Here are some tutorials for @GDScript: GDScript exports: ../tutorials/scripting/gdscript/gdscript_exports.html
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @abstract class Shape: @abstract func draw() class Circle extends Shape: func draw(): print("Drawing a circle.") class Square extends Shape: func draw(): print("Drawing a square.") ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @abstract class Shape: @abstract func draw() class Circle extends Shape: func draw(): print("Drawing a circle.") class Square extends Shape: func draw(): print("Drawing a square.") ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript extends Node enum Direction {LEFT, RIGHT, UP, DOWN} # Built-in types. @export var string = "" @export var int_number = 5 @export var float_number: float = 5 # Enums. @export var type: Variant.Type @export var format: Image.Format @export var direction: Direction # ...
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript extends Node enum Direction {LEFT, RIGHT, UP, DOWN} # Built-in types. @export var string = "" @export var int_number = 5 @export var float_number: float = 5 # Enums. @export var type: Variant.Type @export var format: Image.Format @export var direction: Direction # Resources. @export var image: Image @export...
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_category("Statistics") @export var hp = 30 @export var speed = 1.25 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_category("Statistics") @export var hp = 30 @export var speed = 1.25 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_color_no_alpha var dye_color: Color @export_color_no_alpha var dye_colors: Array[Color] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_color_no_alpha var dye_color: Color @export_color_no_alpha var dye_colors: Array[Color] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_custom(PROPERTY_HINT_NONE, "suffix:m") var suffix: Vector3 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_custom(PROPERTY_HINT_NONE, "suffix:m") var suffix: Vector3 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_dir var sprite_folder_path: String @export_dir var sprite_folder_paths: Array[String] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_dir var sprite_folder_path: String @export_dir var sprite_folder_paths: Array[String] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_enum("Warrior", "Magician", "Thief") var character_class: int @export_enum("Slow:30", "Average:60", "Very Fast:200") var character_speed: int @export_enum("Rebecca", "Mary", "Leah") var character_name: String @export_enum("Sword", "Spear", "Mace") var chara...
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_enum("Warrior", "Magician", "Thief") var character_class: int @export_enum("Slow:30", "Average:60", "Very Fast:200") var character_speed: int @export_enum("Rebecca", "Mary", "Leah") var character_name: String @export_enum("Sword", "Spear", "Mace") var character_items: Array[int] @export_enum("double...
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_enum("Rebecca", "Mary", "Leah") var character_name: String = "Rebecca" ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_enum("Rebecca", "Mary", "Leah") var character_name: String = "Rebecca" ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript enum CharacterName {REBECCA, MARY, LEAH} @export var character_name: CharacterName enum CharacterItem {SWORD, SPEAR, MACE} @export var character_items: Array[CharacterItem] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript enum CharacterName {REBECCA, MARY, LEAH} @export var character_name: CharacterName enum CharacterItem {SWORD, SPEAR, MACE} @export var character_items: Array[CharacterItem] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_exp_easing var transition_speed @export_exp_easing("attenuation") var fading_attenuation @export_exp_easing("positive_only") var effect_power @export_exp_easing var speeds: Array[float] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_exp_easing var transition_speed @export_exp_easing("attenuation") var fading_attenuation @export_exp_easing("positive_only") var effect_power @export_exp_easing var speeds: Array[float] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_file var sound_effect_path: String @export_file("*.txt") var notes_path: String @export_file var level_paths: Array[String] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_file var sound_effect_path: String @export_file("*.txt") var notes_path: String @export_file var level_paths: Array[String] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags("Fire", "Water", "Earth", "Wind") var spell_elements = 0 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags("Fire", "Water", "Earth", "Wind") var spell_elements = 0 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags("Self:4", "Allies:8", "Foes:16") var spell_targets = 0 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags("Self:4", "Allies:8", "Foes:16") var spell_targets = 0 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags("Self:4", "Allies:8", "Self and Allies:12", "Foes:16") var spell_targets = 0 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags("Self:4", "Allies:8", "Self and Allies:12", "Foes:16") var spell_targets = 0 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags("A:16", "B", "C") var x ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags("A:16", "B", "C") var x ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags("Fire", "Water", "Earth", "Wind") var phase_elements: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags("Fire", "Water", "Earth", "Wind") var phase_elements: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_2d_navigation var navigation_layers: int @export_flags_2d_navigation var navigation_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_2d_navigation var navigation_layers: int @export_flags_2d_navigation var navigation_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_2d_physics var physics_layers: int @export_flags_2d_physics var physics_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_2d_physics var physics_layers: int @export_flags_2d_physics var physics_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_2d_render var render_layers: int @export_flags_2d_render var render_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_2d_render var render_layers: int @export_flags_2d_render var render_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_3d_navigation var navigation_layers: int @export_flags_3d_navigation var navigation_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_3d_navigation var navigation_layers: int @export_flags_3d_navigation var navigation_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_3d_physics var physics_layers: int @export_flags_3d_physics var physics_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_3d_physics var physics_layers: int @export_flags_3d_physics var physics_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_3d_render var render_layers: int @export_flags_3d_render var render_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_3d_render var render_layers: int @export_flags_3d_render var render_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_flags_avoidance var avoidance_layers: int @export_flags_avoidance var avoidance_layers_array: Array[int] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_flags_avoidance var avoidance_layers: int @export_flags_avoidance var avoidance_layers_array: Array[int] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_global_dir var sprite_folder_path: String @export_global_dir var sprite_folder_paths: Array[String] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_global_dir var sprite_folder_path: String @export_global_dir var sprite_folder_paths: Array[String] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_global_file var sound_effect_path: String @export_global_file("*.txt") var notes_path: String @export_global_file var multiple_paths: Array[String] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_global_file var sound_effect_path: String @export_global_file("*.txt") var notes_path: String @export_global_file var multiple_paths: Array[String] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_group("Racer Properties") @export var nickname = "Nick" @export var age = 26 @export_group("Car Properties", "car_") @export var car_label = "Speedy" @export var car_number = 3 @export_group("", "") @export var ungrouped_number = 3 ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_group("Racer Properties") @export var nickname = "Nick" @export var age = 26 @export_group("Car Properties", "car_") @export var car_label = "Speedy" @export var car_number = 3 @export_group("", "") @export var ungrouped_number = 3 ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_multiline var character_biography @export_multiline var npc_dialogs: Array[String] @export_multiline("monospace", "no_wrap") var favorite_ascii_art: String ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_multiline var character_biography @export_multiline var npc_dialogs: Array[String] @export_multiline("monospace", "no_wrap") var favorite_ascii_art: String ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_node_path("Button", "TouchScreenButton") var some_button @export_node_path("Button", "TouchScreenButton") var many_buttons: Array[NodePath] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_node_path("Button", "TouchScreenButton") var some_button @export_node_path("Button", "TouchScreenButton") var many_buttons: Array[NodePath] ```
Explain this GDScript code in Godot
What does this code do?
This code demonstrates this functionality: ```gdscript @export_placeholder("Name in lowercase") var character_id: String @export_placeholder("Name in lowercase") var friend_ids: Array[String] ```
Write GDScript code for this functionality in Godot
How do I implement this functionality?
```gdscript @export_placeholder("Name in lowercase") var character_id: String @export_placeholder("Name in lowercase") var friend_ids: Array[String] ```
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
27