## Using C# and Visual Studio Code in Godot 4

Godot supports GDScript, C# and C++ as the scripting language. Godot also allows you to mix and match different languages in a single project. In this tutorial, we will see how to set up C# and VS code for Godot 4. Word of Caution: Godot 4 does not support export to Android, IOS and Web … Read more

## Unity to Godot: A quick guide to get started

In recent times, after the announcement of new pricing plan by Unity, many developers are looking to switch to Godot. Godot being free and easy to use is the first choice for most indie game developers. In this article, we will compare all aspects of Unity and Godot starting from installation to building a game. … Read more

## How to generate random numbers in Godot

Random numbers are very useful in games and generating them is usually a single line of code. In this tutorial, we will see how to generate random numbers in Godot and see the available functions. I am using Godot 3.4.2 for this tutorial. To generate a random number in Godot you need to initialize a … Read more

## How to add a background image in Godot2D

In this tutorial, we will see how to add an image as the background in Godot2D. I am using Godot version 3.4.2 for this tutorial. I am assuming you have a 2D scene setup already if not create a new 2D scene. Click on node2D and add a TextureRect to your scene. Scale the boundaries … Read more

## How to Make path curves in Godot 3d using code?

Curves are nothing but mathematical equations. As the curve becomes complex so does the equation. Game developers need not understand the maths behind drawing curves but the function is what is needed. In this tutorial we will see how to draw Bezier curve in Godot with code. There are two types of Bizier curves we … Read more

## Move an object along a path in Godot 2D

In this tutorial, we will see how to move a 2D sprite in a pre-defined path in Godot. What you will learn How to create a path. How to make your sprite follow the path I will be using Godot 3.4.2 for this tutorial. Let’s get started. Creating a path in Godot Add a path2D … Read more

## Creating a delay in Godot

In our last tutorial, we learnt how to destroy a node during runtime. In this tutorial, we will include a delay timer to the script and destroy the object after the delay The simplest way is to create a variable and subtract it with delta in the _process(). When the variable hits zero, destroy the … Read more

## How to destroy a node in runtime using code in Godot

In our last tutorial, we learned how to create a button in Godot. In this tutorial, we will use that button to destroy the node in our scene during runtime. Godot has a little weird terminology for destroying a node. They call it free. You can just call “Free(node)” in your function to destroy the … Read more

## How to make a button in Godot

In our earlier tutorial we learned how to move an object in Godot. In this tutorial, we will create a button to increase the speed of the object. What you will learn Creating a new button. Adding text to the button Linking the button to the object script. Let’s get started Creating a new Button … Read more

## How to move a player in Godot

Moving a player based on keyboard input is the simplest script that is needed for a game. In this tutorial, we will see how to move a player based on keyboard input in Godot in both 2D and 3D. I am using Godot version 3.4.2 for this tutorial. Mapping the input Before you can take … Read more