kidscancode / godot_recipes

Lessons, tutorials, and guides for game development using the Godot game engine.
MIT License
239 stars 37 forks source link

missing code line and explanation in 4.0's "Your first 2d game" tutorial #125

Closed dukemagus closed 1 year ago

dukemagus commented 1 year ago

https://kidscancode.org/godot_recipes/4.x/games/first_2d/first_2d_05/index.html

for this script to work, you need to add an "Input.is_action_pressed("the_shoot_button")" inside the delta function

The finished project on github has the line, though, so it just needs a a paragraph and a small code block on lesson 5

On a side note, the gif also shows the wrong kind of bullet. whomever recorded it used "Player_charged_beam (16 x 16).png" instead of "Player_beam (16 x 16).png". This doesn't prevent the completion of the tutorial, though.

Here's an alternate gif the author can use:

Godot_v4 0 2-stable_win64_Yyye7lsAdY

cbscribe commented 1 year ago

The tutorial has been updated. Thanks!