Help ! I'm making a Drum Game

iStyle3DiStyle3D Member Posts: 36
edited October 2013 in Working with GS (Mac)
Hello guys !

I'm making a game, some kind of drums and I have problems with sounds :

I have the drum, and I have a rule for the snare :

*If "key s" is down, play sound : "and here I have a snare sound"

I've done the same for the kick :

*If "key space" is down, play sound : "a kick sound"

The problem is that if I press both togheter, they sound bad, and the kick became a rare sound and
It not sound good.

I've stoped the project till I get an answer, because I wanna know if I can do a Drum App for
iPhone with GameSalad and play with "sounds" or not.

Thanks !

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    Hi @iStyle3D The following is a sort of "principal" to help you out with what your after.

    For each sound, make a boolean, let's call them Snare01 and Kick01

    In your snare button, put:

    Rule: When key s is down
    Change Attribute scene.Snare01 to true

    Rule: When scene.Snare01 is true
    Play Sound YourSnare --- Run to completion unchecked

    Rule: When key s is up
    Change Attribute scene.Snare01 to false

    ----and in your kick button:

    Rule: When key space is down
    Change Attribute scene.Kick01 to true

    Rule: When scene.Kick01 is true
    Play Sound YourKick --- Run to completion unchecked

    Rule: When key space is up
    Change Attribute scene.Kick01 to false

    If the sounds are still not sounding right, make sure you import the sound files as "safe" formats like aiff or wav, (and most times mp3 but occasionally some oddly-formated mp3s cause probs) and let GSC convert them to ogg for you.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • iStyle3DiStyle3D Member Posts: 36

    Hi @iStyle3D The following is a sort of "principal" to help you out with what your after.

    For each sound, make a boolean, let's call them Snare01 and Kick01

    In your snare button, put:

    Rule: When key s is down
    Change Attribute scene.Snare01 to true

    Rule: When scene.Snare01 is true
    Play Sound YourSnare --- Run to completion unchecked

    Rule: When key s is up
    Change Attribute scene.Snare01 to false

    ----and in your kick button:

    Rule: When key space is down
    Change Attribute scene.Kick01 to true

    Rule: When scene.Kick01 is true
    Play Sound YourKick --- Run to completion unchecked

    Rule: When key space is up
    Change Attribute scene.Kick01 to false

    If the sounds are still not sounding right, make sure you import the sound files as "safe" formats like aiff or wav, (and most times mp3 but occasionally some oddly-formated mp3s cause probs) and let GSC convert them to ogg for you.
    Ok I'll try to do that, but I convert sounds for myself in OGG with atube catcher .. Is that a good way ?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    I've heard of people having problems in the past (i.e reading on these Forums) by converting to ogg outside of GSC...(I'm not saying you'll always have problems, but ocasionally maybe as some convertors to ogg use slightly different formatting/compression techniques outside of the usual that's not compatible with GSC) ...not sure why you need to do that anyway, as GSC converts sounds to ogg for you... possibly you save a bit of filespace...

    I'd recommend my prev. advice still though, i.e import as aiff or wav(e), or even mp3 in the main and you're guaranteed no problems.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • iStyle3DiStyle3D Member Posts: 36
    edited October 2013
    Hey @gyroscope ! I did what you said and it works now ! But I checked "run to completion" because i want to press a key and not to hold on that key to play the entire sound.

    I wanna do an App with some kind of drums (house, acustic, rock ... etc) but I don't know one thing ... :


    How can I do to put an option with : "play music from your own library" so you can play the drum and listen to your iphone music ? Or how can i do that if you play a song with your iphone and you lauch the app to be able to play the drum while the music is playing ?


    THANKS !!!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi again @iStyle3D sorry there's no capability in GSC to do what you're after there, sorry...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • iStyle3DiStyle3D Member Posts: 36
    Ok no problem :D

    In a couple of days I will have the game done and I'll show you my work ! :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Best of luck; and I look forward to that. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • iStyle3DiStyle3D Member Posts: 36

    Best of luck; and I look forward to that. :-)
    Hey Gyro !

    I have a question.

    I'm working now with the dessign part, but I've made the snare and the kick for the sound part to see for the moment how It works, and I have a problem :

    *If I press 3 or 4 times the key "S" very fast, the sound Sounds late or It not sound ...

    I guess this is a problem with the sound, so I downloaded a professional software to cut sounds to make them as you want ... so It will work ?

    my idea is to use that APP for iPhone with TOUCH, so I don't want that If a guy touch the Snare very fast to collapse :/


    THANKS ! (Sorry for my english, I'm Spanish)

  • fadamionfadamion Member, PRO Posts: 309
    Use mp3s for sure.
  • iStyle3DiStyle3D Member Posts: 36
    Use mp3s for sure.
    So that will resolve my problem ? :O

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Best of luck; and I look forward to that. :-)
    Hey Gyro !

    I have a question.

    I'm working now with the dessign part, but I've made the snare and the kick for the sound part to see for the moment how It works, and I have a problem :

    *If I press 3 or 4 times the key "S" very fast, the sound Sounds late or It not sound ...

    I guess this is a problem with the sound, so I downloaded a professional software to cut sounds to make them as you want ... so It will work ?

    my idea is to use that APP for iPhone with TOUCH, so I don't want that If a guy touch the Snare very fast to collapse :/


    THANKS ! (Sorry for my english, I'm Spanish)

    Hi again, @iStyle3D no worries about your english, I understand you very well. :-)

    OK, yes, try opening your snare and kick sounds in an audio editor first to make sure there is no leading silence before the actual sounds start; and if there is, delete it, of course.

    So once you've updated the sounds in GSC, hopefully you should be OK; if not, I'll think again...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • iStyle3DiStyle3D Member Posts: 36

    Best of luck; and I look forward to that. :-)
    Hey Gyro !

    I have a question.

    I'm working now with the dessign part, but I've made the snare and the kick for the sound part to see for the moment how It works, and I have a problem :

    *If I press 3 or 4 times the key "S" very fast, the sound Sounds late or It not sound ...

    I guess this is a problem with the sound, so I downloaded a professional software to cut sounds to make them as you want ... so It will work ?

    my idea is to use that APP for iPhone with TOUCH, so I don't want that If a guy touch the Snare very fast to collapse :/


    THANKS ! (Sorry for my english, I'm Spanish)

    Hi again, @iStyle3D no worries about your english, I understand you very well. :-)

    OK, yes, try opening your snare and kick sounds in an audio editor first to make sure there is no leading silence before the actual sounds start; and if there is, delete it, of course.

    So once you've updated the sounds in GSC, hopefully you should be OK; if not, I'll think again...
    Have anyone told you that you are the best ? :D

    thanks !
Sign In or Register to comment.