How to Use Sound Effects in GameMaker Studio 2! (SFX System)

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 64

  • @peytonburnham4316
    @peytonburnham4316  2 роки тому +5

    Support me on Patreon! www.patreon.com/peytonburnham
    Some benefits include stuff like your name in the credits, early videos, assets (art and sfx), and the project file itself! So definitely check it out if you want to support the channel and get some perks! Thanks!

    • @flashgamers5967
      @flashgamers5967 2 роки тому +1

      You can make a guide to a running system in rpg as in deltarune ?😁

    • @valvontish
      @valvontish 2 роки тому

      this is greattt, maybe do a series on hacknslash games tutorial kinda like starcade

  • @Dark_Peace
    @Dark_Peace 2 роки тому +23

    I don't even use this game engine. I'm here to feed the algorithm with my comments and likes

  • @makeitsogames
    @makeitsogames Рік тому +3

    With this implementation you don't have to have variables for each sound:
    [ obj_sound_manager ]
    >>> CREATE
    sound_queue = []
    function play_sound(_snd) {
    if (!array_contains(sound_queue, _snd)) {
    array_push(sound_queue, _snd)
    }
    }
    >>> END STEP
    // Process each sound in the queue
    for (var i = 0; i < array_length(sound_queue); i++) {
    var _sound_to_play = sound_queue[i]
    audio_play_sound(_sound_to_play, 8, false)
    }
    // Clear the queue after processing
    sound_queue = []
    To play a sound:
    obj_sound_manager.play_sound(snd_jump)

    • @CSaputo
      @CSaputo Рік тому +1

      I really like this method, thank you!

  • @seyriuu
    @seyriuu Рік тому +3

    Thanks for the amazing tutorial! first time I'm adding sound to my game and it was very helpful! A small improvement is to have a script that adds sounds (if the sound is not already in the list ) to a ds_list inside the oSFX, then in the step of the oSFX you can just iterate over the list playing every sound and in the end clearing the list, this way you dont need a bunch of boolean variables

  • @anonymousguy6614
    @anonymousguy6614 2 роки тому +2

    Yo! Completely unrelated to your video but I just played through(almost) all of Rose Of Starcross and I loved it!!! the nattle system is fun and is my type of strategy, I found u through ur game maker tutorials, and then found ur game and wow, ur game literally deserves waaaaaay more attention than it has. Love ur videos and hope the best for u and for ur games. P.S: Wishlisted Starcade :).

  • @reric88
    @reric88 2 роки тому +1

    Your videos are great. They have helped me learn so much in Game Maker. I can't usually follow along with most instructors, but you are easy to listen to and keep up with. Thanks so much.

  • @probablydanhub
    @probablydanhub 2 роки тому +2

    Just want to let you know that you are amazing at explaining, I'm just following all your tutorials to learn more about making games because.. games have always been part of my life and I want to create something to show to people and just be proud, hopefully main goal to enjoy playing it too and make it better and better.
    Once again thank you for all your hard work put into these videos and good luck in the future!

  • @d4rkk452
    @d4rkk452 2 роки тому +2

    Hey man! I don't know if you're going to read this, but i just want to say your tutorials are amazing! It was always my little dream to make my own game and thanks to you i might one day do a pretty good game! So thank you so much and keep doing this stuff! It's amazing and you're helping a lot of people. I hope you get more famous over time! You deserve it. Please keep doing this!

  • @Darrk_77
    @Darrk_77 2 роки тому +2

    oh god i needed this
    adding sound from scratch was so hard lmao

  • @BrumyYT
    @BrumyYT 2 роки тому +10

    Hey! Wanting to ask if you are going to do a video where you may cover an RPG battle system of sorts or how to make one if doing so! Love the content and hope to see more in the future. Your videos are easily digestible and fun to understand. Keep up the great work!

    • @peytonburnham4316
      @peytonburnham4316  2 роки тому +8

      Yo thank you! Yes I am! It’ll be a little while but I’m definitely going to do that!

    • @BrumyYT
      @BrumyYT 2 роки тому +4

      @@peytonburnham4316 Awesome! Looking forward to it, take your time and keep it up my dude!

    • @anandfell6616
      @anandfell6616 2 роки тому

      I said that but thank you for getting his attention

  • @Arewitheyes
    @Arewitheyes 2 роки тому +2

    how do you always upload vids on topics the week i get stuck on them... i really appreciate this vid! ive been stalling on doing this for my current project!
    edit: Just finished the vid! incredibly thorough and helpful, thank you!

  • @itspeterbunny
    @itspeterbunny 2 роки тому +5

    Can you make a video with cutscenes ?

  • @weltonn
    @weltonn 2 роки тому +2

    OOOHHHH THANK YOU SO MUCH 😭😭😭😭

  • @outsidethebox_37
    @outsidethebox_37 2 роки тому +4

    I got a video idea to suggest in case that's something that interests others. Maybe you could make a tutorial on cutscenes? Like making NPC's move and talk at the same time, stuff like that. I know I could definetely use such a tutorial

  • @crygor_3307
    @crygor_3307 2 роки тому

    Man I love your videos. You should do a tutorial about a Earthbound style battle system or kinda

  • @Yfrolov1
    @Yfrolov1 2 роки тому

    Could you please make a video about the effect layers? Especially about combining then with the depth sorting algoritm you showed. I've been struggling with this for days and you are my only hope...

  • @KoniWorx
    @KoniWorx 2 роки тому

    Love your channel! Plz keep makin' theeese

  • @jjg27
    @jjg27 Рік тому

    This was so helpful, thank you!
    I'm wondering what you might suggest for when games get larger and have lots of sounds - I guess checking a true/false in oSFX on every step is not ideal. Thanks for any advice!

  • @anandfell6616
    @anandfell6616 2 роки тому

    i just love your videos and your games

  • @StompaJay
    @StompaJay 2 роки тому +1

    WOOOO TYSM!!!

  • @slyccteam
    @slyccteam 2 роки тому

    You are a gem love all your work

  • @ExoticGamerrrYT-op5xi
    @ExoticGamerrrYT-op5xi 2 роки тому +3

    Peyton how do you animate the water is it a tileset or what?

    • @peytonburnham4316
      @peytonburnham4316  2 роки тому +1

      Its just a single big sprite! Was a little bit easier to do since the demonstration is just a single screen!

  • @Mk2kRaven
    @Mk2kRaven 2 роки тому +1

    Do you plan to do pixel art and music tutorials, and how did you learn how to do these? Any specific youtube video or courses?
    Your videos are pretty good. Your pixel art and music style are interesting.
    Also, in terms of game feel or game juice do you incorporate this near the beginning of your project or towards the end of the project? Or do you kind of just work on it little by little throughout the entire project?

    • @peytonburnham4316
      @peytonburnham4316  2 роки тому +2

      Thank you! I might do some pixel art tutorials! And i learned both that and music just on my own over the years, studying stuff i like!
      And as for the SFX system, the sooner you add it the easier it will be to keep adding new sfx into your game!

  • @phillipnicholl6656
    @phillipnicholl6656 Рік тому

    How do I set a series of Sound Samples for a Invader Sprite then repeat the sound until the Invader is destroy? or do I have join all the samples together as 1 long sample ?

  • @hayabusoft3504
    @hayabusoft3504 Місяць тому

    Fantastic tutorial! Thank you. Though, minor detail, if I change the volume slider of a sound effect it doesn't actually change the volume of the sound effect in the game.

  • @TornadoTwisterYT
    @TornadoTwisterYT 2 роки тому +1

    Peyton, I’ve been trying to ask for help, I’ve been commenting on videos but I have not gotten any replies, I’m remcommenting to see if you see it this time. For the 3rd video on text boxes, I’ve been having this problem, whenever I start up the game, I click on the npc and the text box shows up for like a frame then disappears, leaving only the first letter in the conversation. If you or anyone can help me that’ll be great.

  • @hannahnotbanana
    @hannahnotbanana 2 роки тому +1

    Thank you so much for all your helpful videos but how do you make your own custom text sounds? I have ideas for the sound but don't know how to put it into Gamemaker.

  • @RogerontheKeys
    @RogerontheKeys 2 місяці тому

    thank you sooooo much!

  • @konstantynopolitanczykysyk4212
    @konstantynopolitanczykysyk4212 2 роки тому +1

    Hey, I love your videos and especially the tutorials that helped me get started with programming and just wanted to ask did you make Rose Of Starcross and Starcross Starcade in Gamemaker?

    • @peytonburnham4316
      @peytonburnham4316  2 роки тому +2

      Thanks! And yep they’re both being made in gamemaker!

  • @mem3b0i_
    @mem3b0i_ 2 роки тому

    Just noticed something.
    I placed a coin in a room, worked great, I picked it up and went into another room, when i warped back to the room the coin was placed in, the coin had respawned, how can I prevent that?

    • @mem3b0i_
      @mem3b0i_ 2 роки тому

      I have now learned that I can use globals to make the picked up coins persistent :)

  • @luckythespacecat
    @luckythespacecat 2 роки тому +1

    hello I am Nathan Flood I am a student learning coding ND I appreciate your videos so much but I had a question about your music could you do a tutorial on that

  • @tinex6957
    @tinex6957 2 роки тому

    Do you plan to do a tutorial on cutscenes ?

  • @holiday_out3740
    @holiday_out3740 2 роки тому

    Thanks so much, your videos are super helpful. I was wondering if there was a way to have a sound loop whenever the character is moving (in my case, I have a little engine hum because my character has no feet, just sort of floats)

  • @ericeric2973
    @ericeric2973 2 роки тому

    I have a question, I’m sorry if this is really easy to do and/or if you’ve already covered it but could you help with interacting with NPCs? Like talking with them or maybe even getting an item from them? That would really help me with what I’m trying to do right now and I would really appreciate it

  • @DJaycerOfficial
    @DJaycerOfficial Рік тому

    for some reason, no matter what I do, playing a sound just doesn't work for me. I followed the directions and the sound plays in the preview of game maker but when in the game it just doesn't play. Am I doing something wrong?

    • @thomasttt
      @thomasttt 2 місяці тому

      you ever figure this out? Been having the same issue for a LONG time. Sounds used to work for me and then after updating gamemaker they all broke. Now I can't get sound fx OR music working

    • @DJaycerOfficial
      @DJaycerOfficial 2 місяці тому

      @@thomasttt I actually don’t remember what the problem was. It might’ve been that I just didn’t have my headphones in but like they all work now. Thinking back I think it was an issue with programming the sound effects. So just try a very basic test with little or no if statements until it works.

    • @thomasttt
      @thomasttt 2 місяці тому

      @@DJaycerOfficial thanks for replying

  • @mem3b0i_
    @mem3b0i_ 2 роки тому

    A quick question about Rose of starcross: will it be ported to console or will it only be on pc?

  • @zer0ghostz
    @zer0ghostz 2 роки тому

    hello!!! i am wondering if you have added a fix for the code with the menu/dialouge? i set my accept get to "F" and its works but if i press f to go to the next room, and i press it again outside of the menu room, it sends me to the next room again. if this is not your issue in teh code and mine ill just go watch it again :D ty!!!!
    also love the tutorials you have been such a huge help in making my game.

  • @regallomo
    @regallomo 2 роки тому

    when can i finally play your game, ive been waiting ..

  • @ps4ljaska683
    @ps4ljaska683 Рік тому

    dont understand how to make step sound effect

  • @RacTeamGames
    @RacTeamGames Рік тому

    mine dosent play a sound

  • @ralsei454
    @ralsei454 2 роки тому +2

    I wait Cutscenes D:

  • @ExoticGamerrrYT-op5xi
    @ExoticGamerrrYT-op5xi 2 роки тому +2

    second

  • @jason256-8
    @jason256-8 2 роки тому

    Hey… just a favor from you? Would you mind helping me and others help code an Undertale fangame like giving tutorials for it? Something that would resemble exactly the original game. Another user QSVGaming made some already but his tutorials are just plain bad and whenever I followed strictly all his code, my programmed got riddled with errors and bugs. QSVGaming isn’t teaching properly at all. I’m not forcing you to but try to do it if you are free.