Please, please help me...a game based on generating random sound files?
Shakespeare
Member, PRO Posts: 25
Hello everyone! So many great posts...what an inspiring community!
I'm new to this forum and about a month into the software and am desperately hoping you smart people can get me out of a bind. I've searched the threads and can't come up with a solution and there's no template offered for this. I'm at a dead-end after several frustrating weeks.
I want to create an exercise app like the ones at the link below but using sound files instead of lights.
http://www.exergamefitness.com/products/item.php?show=touch_wall
The app/game calls out a random number 1-40 and you respond by touching the designated number on the wall. I've seen the great youtube videos from t-shirt booth and others, but the randoms created are visual. I'm trying to do sound files only and the only visual would be a control interface (option for slow, medium, and fast, and time per session).
I really need your help, even if you only have a theory please, please chime in.
Thank you!!!!!!!!
I'm new to this forum and about a month into the software and am desperately hoping you smart people can get me out of a bind. I've searched the threads and can't come up with a solution and there's no template offered for this. I'm at a dead-end after several frustrating weeks.
I want to create an exercise app like the ones at the link below but using sound files instead of lights.
http://www.exergamefitness.com/products/item.php?show=touch_wall
The app/game calls out a random number 1-40 and you respond by touching the designated number on the wall. I've seen the great youtube videos from t-shirt booth and others, but the randoms created are visual. I'm trying to do sound files only and the only visual would be a control interface (option for slow, medium, and fast, and time per session).
I really need your help, even if you only have a theory please, please chime in.
Thank you!!!!!!!!
Best Answers
-
tatiang Posts: 11,949No, no, it took me ten minutes. I was mostly finished when Creator crashed and I had to start over. :P Believe me, I've spent hours and days and longer working on files just to have someone else here give me a ten minute demo, too. *sigh*
You're welcome! It is a Mac file so you'll either need to open it on a Mac or convert it (http://gshelper.com/mac-to-windows-template-conversion-gamesalad-tutorial).New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
-
tatiang Posts: 11,949@Shakespeare Woo! Alright, you're set.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
THANK YOU so much for lending your expertise.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Am DYING to see this demo! I noticed you did this in 20 minutes, indeed I have wasted weeks of my life cursing at myself instead of asking for help.
Having a little difficulty opening - hitting the PC didn't help. I'm guessing it's because I'm on Windows so I will get access to a Mac. If this is the fix I am looking for I will be in touch to express some appreciation.
Thank you for taking the time to help me.
thanks so much for the link to convert. Am still having some issues opening, the Windows version of GS (at least for me) has been glitchy at times. I'm weeks into this with a bruised ego so will find a Mac come Hell of High Water to look at it Thanks not only for your expertise, but helping so quickly. Am very grateful.
I didn't include the Score actor, but you could use DisplayText for a really simple score display if you like.
The square actor is just what it seems like... a square that you click/tap when you hear the right sound (e.g. tap the "1" square when you hear "1"):
The sound control actor is an off-screen actor that plays sounds based on the random number that is generated (see randomizer rules at bottom of this post). This shows the first rule of 6 (in my demo there are six squares and six sounds). Just copy it and change the right side of the equation to 2 and the sound file name to 2 (or whatever you decide to call the second sound), then to 3 for the next rule, etc.:
The randomizer is an off-screen actor that chooses a random sound every x seconds:
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Although this seems to indicate that there isn't really an easy way to do this: http://forums.gamesalad.com/discussion/55147
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
You can make x a real attribute which is the length of each audio clip. Let's call it game.soundDuration
So if clip1 is 2.2 seconds add that info to your list of tracks to play.
e.g when game random = 1
Play sound clip1
and change game.soundDuration to 2.2
So now the next clip to play will only play after 2.2 seconds
And if timers are a problem for some reason just make an integer attribute with a value of zero and use the following rule instead of a timer:
when game.zero = game.time%game.soundDuration
... do stuff
But yes, as @tatiang pointed out the easiest way is to just make every sound the same length! That might actually make the game nicer as it would have a steady rhythm.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
HoneyTribeStudios,
Your guidance seems to be exactly what I need to do and I've tried to work this but my feeble abilities keep getting in the way. I know this is probably basic stuff, but would it be too much to ask if you could dummy this down a bit please? Is the attribute added to each of the Rules for every sound file (Play Sound) or do I need to adjust the Randomizer? It looks like the actual rule for each sound and then add the duration for that particular sound (i.e. 2 seconds, 5 seconds, etc).
Sorry, I got spoiled by tatiang with the visuals!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
So if you have 3 sounds clips and their durations are
clip1: 2.2 seconds
clip2: 4.0 seconds
clip3: 5.3 seconds
In your timer you have:
Every game.soundDuration seconds change game.clipNumber to random(1,3)
Then you make your rule
When game.clipNumber = 1
Play soundClip1
Change game.soundDuration to 2.2
otherwise
When game.clipNumber = 2
Play soundClip2
Change game.soundDuration to 4.0
otherwise
When game.clipNumber = 3
Play soundClip3
Change game.soundDuration to 5.3
etc
And if timers give a you a problem you can replace with:
when game.0 = game.time%game.soundDuration
change game.clipNumber to random(1,3)
Don't worry about not getting it right the first time. I'm sure that'll only make it more satisfying when you do get it working how you want.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS