Lesson 9: Creating the player projectile
- Lesson 1: Getting started with Godot 4 2:53
- Lesson 2: Overview of the Godot interface 18:24
- Lesson 3: Setting up the level 11:09
- Lesson 4: Creating the player 22:42
- Lesson 5: Spawning the platforms 8:09
- Lesson 6: Creating a collectible 18:49
- Lesson 7: Creating an enemy 10:46
- Lesson 8: Handling player death 10:26
- Lesson 9: Creating the player projectile
- Lesson 10: Adding the final touches 6:54
- Lesson 11: Exporting your game and wrapping up 2:37
It’s time for the bad guys to meet a fiery end. We’re going to give our raptor an explosive fireball to shoot.
In Godot 4 Beta 16 or higher, the AnimatedSprite2D’s Playing checkbox has been removed from the Inspector. It has been replaced by the Autoplay button, which can be found in SpriteFrames panel next to the trashcan icon.
After you add the player’s projectile, you might notice an error in the console: Move functions do not work together with ‘sync to physics’ option. To fix this, open the Projectile scene, select the Projectile node, and uncheck the
Sync to Physics option in the Inspector.