Godot 3.2: Let's Build a 2D Platformer!: Part 16 (Sound Effects & Music!)

  Рет қаралды 44,056

BornCG

BornCG

Күн бұрын

Пікірлер: 89
@doctormustaqueem2005
@doctormustaqueem2005 4 жыл бұрын
Loved this tutorial series. very simple to understand. I am new to learn how to built games. Your work is fantastic . Please release more videos continuously. Followings your tutorial to built a polished game (hopefully).
@corvidashgame5613
@corvidashgame5613 2 жыл бұрын
This tutorial has been so helpful in helping me learn the basics of making a 2D game! Thank you for such a thorough set of instructional videos :D
@mummelputz8939
@mummelputz8939 2 жыл бұрын
To making sounds you can use BeepBox :) Makes a lot of fun and is really easy to use.
@qqq9542
@qqq9542 4 жыл бұрын
Woohoooo the man is back!!! Welcome back BornCG!! Can’t wait to watch the whole video :)
@green_markhor
@green_markhor 4 жыл бұрын
First. Congrats on your marriage. Also can you make the next video about "lives". Like 3 player lives.
@harryantonio3156
@harryantonio3156 3 жыл бұрын
Pro tip: you can watch movies at Kaldrostream. Me and my gf have been using it for watching lots of of movies during the lockdown.
@darianzayn1106
@darianzayn1106 3 жыл бұрын
@Harry Antonio Yea, I've been watching on Kaldrostream for since december myself :)
@slowcreep6978
@slowcreep6978 3 жыл бұрын
If you already have VLC Player and you want to convert an audio file to OGG or WAV: 1. Click Media in the top left. 2. Select Convert / Save from the drop-down menu. 3. Click +Add button to the right of the pop-up. 4. Browse to and double-click the file you want to convert. 5. Once you have a file selected click Convert / Save at the bottom. 6. In the next popup click the Wrench symbol to the right of Profile. 7. Under the Encapsulation tab select either Ogg/Ogm or WAV. 8. Click on the Audio Codec tab. 9. Click on the Codec drop-down menu. 10. Select Vorbis for Ogg/Ogm or WAV for WAV. (Make sure it matches what you chose in the Encapsulation tab.) 11. Click Browse to the right of Destination File at the bottom. 12. Name it what you want and make sure the extension matches your selection. (Note: It likes to keep the old extension which can result in some confusion.) 13. Click Start at the bottom right. Sometimes VLC will appear to minimize or close, but if you check the folder where you saved your converted file, it should be there. It can take awhile for bigger files, so keep that in mind. Also, I primarily use this to convert files to WAV, so if you convert something to Ogg and it doesn't work, I don't know that I will be of much help.
@morganahusky85
@morganahusky85 2 жыл бұрын
Ya se siente como un juego profesional,con buen control ,animación y música. GRACIAS
@specialK33616
@specialK33616 4 жыл бұрын
Nice been waiting for this one
@thatoneguy416
@thatoneguy416 3 жыл бұрын
thanks for the tutorial! now i can add audio in my game!
@auscan7739
@auscan7739 3 жыл бұрын
If you click on the audio in the inspector you get to change the looping setting
@jacksorjacksor
@jacksorjacksor 3 жыл бұрын
Great tutorial, thank you so much! Here are part of #stopWaitingForGodot ! The default looping/import menu is SO STRANGE and thank you for such a clear explanation and solution!!
@calmguitar8530
@calmguitar8530 2 жыл бұрын
Another thing you can do to turn off looping is just to tap the audio in the stream area in the inspector.
@ap-do8ll
@ap-do8ll Жыл бұрын
ty
@helianthe3457
@helianthe3457 3 жыл бұрын
Be careful to take the correct audio node, and also I had to move the $SoundSquash up (right below the $animated_sprite) because my timer was too short and the sound effect didn't have the time to play. It fixed the issue for me, if anyone has that problem as well. Great video as always!
@slayer5171
@slayer5171 3 жыл бұрын
Hello Mr. Colin, love your youtube series so much teaching about Godot Engine, learn so much from you. Would you make more tutorials on Godot? example: how to use configfile in Godot to save user configuration and users level.
@alialhasan2515
@alialhasan2515 4 жыл бұрын
thank you so much for this amazing series
@aben776
@aben776 3 жыл бұрын
Adding sound and music was the easiest lesson. Great video!
@ragenut1168
@ragenut1168 2 жыл бұрын
If the volume of the music on level 1 gets lower the farther you are from the beginning of the level. Try making the MusicLevel node a child of the Player/Steve node, just like the Camera2D
@Jeansou21
@Jeansou21 2 жыл бұрын
Yeah, that happenned to me, good idea!
@axelbengo8726
@axelbengo8726 4 ай бұрын
Or go to the "max distance" property of your audio in the inspector and put a larger number like 9999999999999 👌
@caiofernando
@caiofernando Жыл бұрын
It's a boring process, but it really adds to the game experience. Thanks!
@michelcabartier2755
@michelcabartier2755 Жыл бұрын
your channel is really great ... the best for me thank you and big hello from France
@BornCG
@BornCG Жыл бұрын
Hello from Canada!
@matteoezrasmith
@matteoezrasmith 4 жыл бұрын
as always, THANK YOU!
@rorballfrias1750
@rorballfrias1750 4 жыл бұрын
REally nice.
@simmzzzz
@simmzzzz 3 жыл бұрын
MP3 works fine now :)
@terogamer345
@terogamer345 2 жыл бұрын
Thanks for the tutorial!
@rorballfrias1750
@rorballfrias1750 4 жыл бұрын
REally REally GOOODDDDDDEEEEEeeeeeeeeee..
@krspy8849
@krspy8849 4 жыл бұрын
chill bro
@1986DarkStalker
@1986DarkStalker 2 жыл бұрын
Thanks for the tutorial! Is there a way to add multiple sfx to one node, so that you can activate them in code like animations? (ex.: something like sfx_node.play_sound(sound1))
@MrJeepty
@MrJeepty 4 жыл бұрын
excellent work as always
@cinetube9348
@cinetube9348 4 жыл бұрын
i am a new subscriber now, keep it going, thank you for your nice project
@DJDMusic_
@DJDMusic_ 3 жыл бұрын
you could go press the arrow by jumpsound and click edit and then you have loop settings
@benperrin1612
@benperrin1612 3 жыл бұрын
Great tutorial series thank you for putting it together!! Do you have any plans to create a tutorial for moving to the next level rather than the ‘You Win’ screen and then more importantly saving what level the user is on when they return to the game? Thanks!
@allinonecuber9064
@allinonecuber9064 3 жыл бұрын
I was Just making A new game Then i Had To see what is the name for the Music thing and when i saw it, i realised that is uploaded on my birthday last year now i know why this was rcommened to me xD
@KanishkaDilshan
@KanishkaDilshan 4 жыл бұрын
Super nice!
@waso999
@waso999 4 жыл бұрын
Thanks for awesome tutorials. I think it's better if you maximize tutorial window. some time I confuse with your Taskbar and Mine.
@jbanimations8475
@jbanimations8475 4 жыл бұрын
I don't know if it is only a new version thing but when I click on the stream in the inspector it opens a small panel with a loop option.
@loyisongcobo7565
@loyisongcobo7565 4 жыл бұрын
yeah i saw it too
@gernottiefenbrunner172
@gernottiefenbrunner172 3 жыл бұрын
But it says "! changes may be lost" (or something to that effect, I'm not using the english version)
@SamuraiSync
@SamuraiSync 3 жыл бұрын
Sir you didn't made a video on shooting fireballs part You told about it in the intro part
@BornCG
@BornCG 3 жыл бұрын
I haven't yet!
@HOKAIDOOOOO
@HOKAIDOOOOO 3 жыл бұрын
@@BornCG when sir?
@yurabg7108
@yurabg7108 2 жыл бұрын
Thanks's Bro.
@CricketWright
@CricketWright 6 ай бұрын
yoo having a problem with my sound not playing, dunno what it is. Heres my code: extends CharacterBody2D extends CharacterBody2D const SPEED = 120.0 const JUMP_VELOCITY = -300.0 # Get the gravity from the project settings to be synced with RigidBody nodes. var gravity = ProjectSettings.get_setting("physics/2d/default_gravity") @onready var animated_sprite = $AnimatedSprite2D @onready var jump_sound = $jump_sound func _physics_process(delta): # Add the gravity. if not is_on_floor(): velocity.y += gravity * delta # Handle jump. if Input.is_action_just_pressed("jump") and is_on_floor(): velocity.y = JUMP_VELOCITY jump_sound.play() # Get the input direction and handle the movement/deceleration. # As good practice, you should replace UI actions with custom gameplay actions. # get the input direction: -1, 0, 1 var direction = Input.get_axis("move_left", "move_right") # flip sprite if direction > 0: animated_sprite.flip_h = false elif direction < 0: animated_sprite.flip_h = true # Play animations if is_on_floor(): if direction == 0: animated_sprite.play("idle") else: animated_sprite.play("run") else: animated_sprite.play("jumping") # Apply movement if direction: velocity.x = direction * SPEED else: velocity.x = move_toward(velocity.x, 0, SPEED) move_and_slide()
@Cygryf
@Cygryf 4 ай бұрын
jump_sound.play() you forgot to put $ in front 2 months late with the answer but better late than never ;P
@hakeem2478
@hakeem2478 4 жыл бұрын
Nice pro
@МаксимАнтонов-п5и
@МаксимАнтонов-п5и 3 жыл бұрын
you best
@garageofsilliness8256
@garageofsilliness8256 2 жыл бұрын
Fun Fact: Godot can also use MP3 files! 😉
@BornCG
@BornCG 2 жыл бұрын
Absolutely! Godot added support for mp3 sound files in the next version I think.
@turtlesfish8075
@turtlesfish8075 4 жыл бұрын
How do add foot steps
@tubhat5853
@tubhat5853 4 жыл бұрын
when is the next one coming? is it gonna be the last one?
@rishikarajput7345
@rishikarajput7345 4 жыл бұрын
please read full and reply......please....i am new at coding and game development ... i am following your 3d game tutorial and can you please tell me how to change the player ball's color to light red and brown when it hits an enemy in 3d game........ i am also following this tutorial of yours...please reply and tell me how to do it.....won't consume much of your time
@BornCG
@BornCG 4 жыл бұрын
Like in this platformer 2D mini-series where I programmed the player to turn red when hit by an enemy using 'modulate', I'm confident you can do the same with a texture in 3D... or even swap the texture image on a 3D mesh in-game using code. .. here's the official Godot Docs page on doing this, which is somewhat cryptic, but lists methods that are available to be run on a meshInstance: docs.godotengine.org/en/3.2/classes/class_meshinstance.html
@rishikarajput7345
@rishikarajput7345 4 жыл бұрын
@@BornCG thank you so much I had been trying to do that for a long time and now I will accomplish it...... Thanks Colin
@durgam_sumerian7815
@durgam_sumerian7815 4 жыл бұрын
I hope to see the same simple tutorial but in unity, please.
@BornCG
@BornCG 4 жыл бұрын
Not planning a unity tutorial in the near future, sorry.
@ACatWithACrown
@ACatWithACrown 4 жыл бұрын
Tell the AudioSource to PlayOneShot. Look that up and you'll be good.
@turtlesfish8075
@turtlesfish8075 4 жыл бұрын
Does godot support mp3 file
@turtlesfish8075
@turtlesfish8075 4 жыл бұрын
Oh
@peterleswell6621
@peterleswell6621 4 жыл бұрын
@@turtlesfish8075 nope
@Watchinofoye
@Watchinofoye 3 жыл бұрын
@@peterleswell6621 Actually, yes : docs.godotengine.org/en/stable/getting_started/workflow/assets/importing_audio_samples.html?highlight=mp3#supported-files
@shaineshnikam8718
@shaineshnikam8718 4 жыл бұрын
Sir please make video in ladder climbing
@BornCG
@BornCG 4 жыл бұрын
I'm going to continue this mini-series with platformer 'optional additions' like ladders, lives, shooting fireballs, running, wall kicks, etc. ..
@Mohamed88Hassan
@Mohamed88Hassan 2 жыл бұрын
Ty so much Can u tell me how to make box get dropping on player when he got close to it
@mortykun
@mortykun 2 жыл бұрын
Create an enemy scene like the slime enemy in this tutorial. Except the area2D will be a large rectangle. When the player enters it, instead of hurting the player like in the tutorial, make your "block enemy" fall instead.
@The10ie
@The10ie 3 жыл бұрын
it is sad that you cant use mp3 :(
@BornCG
@BornCG 3 жыл бұрын
Godot 3.2.4 Coming later in March or April 2021?) is adding mp3 support. Converting from wav or ogg is easy apparently using VLC media player.
@fayadkevin
@fayadkevin 3 жыл бұрын
@@BornCG it's there in Godot 3.3 finally
@mahaveerjanagouda77
@mahaveerjanagouda77 4 жыл бұрын
Please come back to blender 2.8. Please
@BornCG
@BornCG 4 жыл бұрын
DEFINITELY coming back to Blender (and continuing with Godot)! .. Blender 2.9 us just about to be released, so I will continue with that.
@rorballfrias1750
@rorballfrias1750 4 жыл бұрын
WHEn DO YOU upload..
@BornCG
@BornCG 4 жыл бұрын
Not on a fixed schedule. Best way to find out when one is coming: follow me on facebook, and/or click the bell icon to turn on notifications for my channel. .. I just took several weeks off to get married + honeymoon.
@thejadewizard6178
@thejadewizard6178 4 жыл бұрын
@@BornCG Congrats man. :)
@rorballfrias1750
@rorballfrias1750 4 жыл бұрын
@@BornCG Felicitacions. AND Congratulations.
@rorballfrias1750
@rorballfrias1750 4 жыл бұрын
@@BornCG AND for the next video if is possible healthbar and dead animation.
@darkpink_electronics4523
@darkpink_electronics4523 Жыл бұрын
6:11 use ogg or wav audio files mp3 doesnt work ^_^
@BornCG
@BornCG Жыл бұрын
I believe mp3 support was added in a later version of Godot 3.x
@vithiyaraymond1793
@vithiyaraymond1793 4 жыл бұрын
Bro please make car game in Godot like nfs please pl pl I am a subscriber so pl do
@aloxerbinbag1731
@aloxerbinbag1731 Жыл бұрын
my brother, can you fast in your video's you slow
@xdinochan3232
@xdinochan3232 Жыл бұрын
Man, not all of us can be fast at learning as you, just put 1.5x and dont complain
@filiperamosable
@filiperamosable 10 ай бұрын
I have a problem with my sound not playing unless I remove the "queue_free()" this is the code: extends Area2D @onready var game_manager = %GameManager @export var Depleted_Effect : PackedScene func _on_body_entered(body): if body.name == "CharacterBody2D": $Soundpickup.play() # Get the parent node where you want to add the particle effect var level_parent: Node = get_parent() # Spawn particle effect var effect_instance: GPUParticles2D = Depleted_Effect.instantiate() effect_instance.position = position level_parent.add_child(effect_instance) effect_instance.emitting = true queue_free() game_manager.add_point() Please help me
@jimmygrenier9668
@jimmygrenier9668 8 ай бұрын
Basically, the "Queue_free()" part tells your node it's due for termination, so it most likely kill the node before the sound effects even starts. I had to modify mine with an adjusted timer (set the wait time to 0.135s) to make the FX play, add the point to the point counters and THEN, call the queue_free(). That's what I did: func _on_body_entered(body): $Timer.start() # Start a timer to delay queue_free if (body.name == "CharacterBody2D"): $CollectibleFx.play() game_manager.add_point() func _on_timer_timeout(): queue_free() #this will be called after the timer expires That way, I had my sound FX and my point going fine, then the collectible vanished. If you time your "wait time" correctly, it should look good and work fine too.
Why smaller pixel art is actually harder
19:22
AdamCYounis
Рет қаралды 422 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 151 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 51 МЛН
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,3 МЛН
I 3D Printed a $1,175 Chair
16:31
Morley Kert
Рет қаралды 3,5 МЛН
What does a Game Engine actually do?
16:45
Ellie Rasmussen
Рет қаралды 158 М.
Audio & Music in the Godot Game Engine -- A Belated Tutorial
25:05
Gamefromscratch
Рет қаралды 23 М.
Exploring Abandoned Games From My Childhood
16:34
globert
Рет қаралды 4,6 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН