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

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 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

How to rotate a sprite in Godot

In this tutorial, we will see how to rotate a sprite on its own axis using code and animation Select the sprite you want to rotate. Go to inspector and create a new script. Add the code below to the script. Save the script and play the game. You can do the same thing by … Read more

Tips to create good in-game tutorials 10 key points for a game trailer Why is UX important in Game design? Level Designer’s Role in Game development How to Use Game Analytics?