Create Your First Godot 4 Game

Lesson 10: Adding the final touches

Video Notes

We’re almost there! Let’s add a few final touches like background music and a main menu to really polish this game up.


  • Deeraghoogames
    April 22, 2023 at 10:08 p.m.

    when adding the music is there a way to make it loop ?

    • Deeraghoogames
      April 22, 2023 at 10:18 p.m.

      never mind i figured it out , when importing the audio make sure that the loop option is checked or select the audio source, go to the import tab and check loop check box then Reimport

      • amit
        April 24, 2023 at 1:14 p.m.

        Good question! For me, it was set to loop by default, but it’s good to know how to change that option. To clarify for anyone else reading, you can double-click the audio file in the FileSystem panel to bring up the re-import and looping options.

        • JTW789
          Sept. 25, 2023 at 7:34 p.m.

          Thank you! I was wandering that myself!


  • ManoShu
    Oct. 21, 2023 at 1:02 a.m.

    To finish the flow of gameplay I added the function to go back to the menu. At the end of the _input(event) method on player.gd I added:

    if(event.is_action_pressed("escape")):
    	get_tree().change_scene_to_file("res://scenes/menu.tscn")
    

    Of course you need to add the escape input on the Input Map.

Want to get into the mix? Sign in or register to comment.

Next lesson