getting_started/first_2d_game/07.finishing-up #16
Replies: 12 comments 13 replies
-
It appears that the node types are now AudioStreamPlayer2D instead of just AudioStreamPlayer. I had to correct that in the code to get the music to play. Very awesome to complete this tutorial. |
Beta Was this translation helpful? Give feedback.
-
how can add touchscreen input to this if i export this game to android? |
Beta Was this translation helpful? Give feedback.
-
I made a small addition that may be suitable for here, which is hiding the player when the app runs and showing them when the game starts. I thought seeing the player on the title screen was odd. Added func new_game():
...
$Player.show()
func _ready():
$Player.hide() |
Beta Was this translation helpful? Give feedback.
-
For the sound effects section mine was missing the Loop checkbox. However based on this forum post I was able to do this by connecting the AudioStreamPlayer's finished() node to main and telling it to start playing the music when the audio finished signal fired like so func _on_music_finished() -> void:
$Music.play() |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
to export the game and show it proudly : |
Beta Was this translation helpful? Give feedback.
-
While pressing the button I get this error: E 0:00:01:0767 event_get_action_status: The InputMap action "start_game" doesn't exist. Did you mean "ui_text_caret_document_start"? screenshot: https://puu.sh/KfJ4y/1c74694461.png |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is something new in 4.3 (I'm completely new to Godot as of this week), but I think I found easier instructions to enable the music looping. Instead of this:
... do this instead: In the Inspector for the Music node, expand the Parameters under AudioStreamPlayer and make sure both the "Looping" and "On" checkboxes are checked. |
Beta Was this translation helpful? Give feedback.
-
I don't know what is the proper protocol here... but can we have a separate page or section or maybe a Discord group where we can discuss various ways we improve and build on the game and how to do new things? For example I added a button with function "boost", so when I press it the speed of my creep will double. But I can't make an "if" condition to increase the speed when score > 30 for example (because I don't know how to setup the if rule to check the score). |
Beta Was this translation helpful? Give feedback.
-
I could not make the "game_start" button to work. (I skipped part of the instructions, because I thought it was related to the controller support). func _process(delta): |
Beta Was this translation helpful? Give feedback.
-
My game is not working. |
Beta Was this translation helpful? Give feedback.
-
I'm seeing a lot of little snips and pieces of the finished script we're supposed to write, but where these pieces go is pretty vague, and I'm almost certain not complete. It looks like there is an assumption that once you've got something figured out in one place, you'll automatically know what goes in somewhere else without any instruction. That's not really the case. Does the completed project exist somewhere to compare what I've done to a known good example? Then I can see if something is in the wrong place or if anything is missing. I can go through line by line, and see it's doing everything I told it to do. It just isn't doing everything the example is doing. Without a known good script to compare it to, I can't see the mistake neither I nor the debugger caught. |
Beta Was this translation helpful? Give feedback.
-
getting_started/first_2d_game/07.finishing-up
We have now completed all the functionality for our game. Below are some remaining steps to add a bit more "juice" to improve the game experience. Feel free to expand the gameplay with your own ide...
https://docs.godotengine.org/en/latest/getting_started/first_2d_game/07.finishing-up.html
Beta Was this translation helpful? Give feedback.
All reactions