-
Book Overview & Buying
-
Table Of Contents
Game Development with Godot 4 and C#
By :
In this section, we’re going to add some small quality-of-life improvements to our game in two specific areas. Both will be implemented in a script, but will have a wide array of impacts on the project, depending on how you want to further develop it. The list of features is as follows:
Let’s start by discussing what tweens are and how to use them.
Tweens are a convenient way to animate objects in Godot, especially when you don’t know the expected value of the object. They allow us to interpolate an object between two points. We’ll be using tweens to make our collectible mushrooms randomly rotate on either the X, Y, or Z axis. They are more lightweight than AnimationPlayer and are great when wanting some light animation or juice to add to an object or UI.
To do this, let’s go ahead and open the Collectible.cs file. We’...