Creating a 'watch and copy'/rhythm/'repeat after me' style game

dillonbradley4dillonbradley4 Member Posts: 4
edited October 2015 in Working with GS (Mac)

Hey guys,

I am knew to gamesalad and the world of coding.

I am looking to create a watch and repeat game, and was looking for some guidance as to how I would achieve this using the game salad software. I will give a basic explanation of the game so you get an idea for what I want to achieve.

The computer would play a pattern formed from vibrations or/and a noise. The role of the player would be to copy the pattern correctly through tapping the screen themselves. A good way to imagine how this would work/look is by looking at the way you create custom vibration tones on iPhones (setting>sounds>ringtone>vibration>create new vibration). As you work through the levels the patterns would get longer and more complicated.

Please could you help me with some ideas as to how I would set up the behaviours, actors ect.. to create this game.

Kind Regards,

Dillon

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Here's a demo I made to get you started. It doesn't show any sort of pattern but rather just has an answer pattern stored in a table. You would still need to display the pattern to the user somehow.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • dillonbradley4dillonbradley4 Member Posts: 4

    Hey,

    Thanks for both of your replies. The difference between my planned game and the two demos that you both sent is that it wouldn't be based on pressing the correct square from a pattern. The player could press any where on the screen but it would be about repeating the rhythm that the computer had played too them, with the aim of creating a identical rhythm or tune. I'm sorry that I'm not explaining ver well , by using the word pattern I think I made it a bit confusing. It's meant to be a 'repeat after me' game to create the same rhythm (or pattern made of sound).

    Maybe this is not possible with gamesalad? I am not sure?

    Kind regards

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @dillonbradley4 said:
    Hey,

    Thanks for both of your replies. The difference between my planned game and the two demos that you both sent is that it wouldn't be based on pressing the correct square from a pattern. The player could press any where on the screen but it would be about repeating the rhythm that the computer had played too them, with the aim of creating a identical rhythm or tune. I'm sorry that I'm not explaining ver well , by using the word pattern I think I made it a bit confusing. It's meant to be a 'repeat after me' game to create the same rhythm (or pattern made of sound).

    Maybe this is not possible with gamesalad? I am not sure?

    Kind regards

    Unfortunately, we do not have access to the microphone so this wouldn't be possible in GameSalad.

  • dillonbradley4dillonbradley4 Member Posts: 4

    @Braydon_SFX said:
    Unfortunately, we do not have access to the microphone so this wouldn't be possible in GameSalad.

    Hey Braydon,

    Thanks for your reply. Sorry I didn't mean reply after me out loud, I mean you would tap the rhythm that has just been played back onto the screen in an attempt to match it and move onto the next level.

    Regards

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited October 2015

    @dillonbradley4 said:
    ...I mean you would tap the rhythm that has just been played back onto the screen in an attempt to match it and move onto the next level.

    Ah, understood. While that isn't going to be easy, it's possible I believe. You'd need to manually create a "rhythm" in a table for each sound you have in-game. When the player tries to tap the rhythm back, you need to compare it to its appropriate rhythm you created. You'll want add in some forgiveness as the rhythm the player creates won't be exactly the same as the one you created in the table.

    If you're new to GameSalad, this won't be easy. Heck, it wouldn't be a walk in the park for me, either. I'd recommend getting very familiar with the tool before attempting this.

    It'll take lots of work to do this, but can possibly be done....possibly. :P

  • dillonbradley4dillonbradley4 Member Posts: 4

    @Braydon_SFX said:
    It'll take lots of work to do this, but can possibly be done....possibly. :P

    Ahh I see. Thanks thats a really helpful answer. And without wanting to dismiss gamesalad (which I think is a great platform), I wonder whether you know of any other app making platforms that this would be easier to make using? Or is this generally just a project I'm gonna need to put alot of time into?

    Regards

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited October 2015

    The key is to have the timings in a table and then when each tap occurs, check to see if it's within some reasonable window of time around the next correct tap time. So if the correct rhythm is tap @ 1 second, tap @ 2.25 seconds, tap @ 2.75 seconds, tap @ 4 seconds, your table row might be:

    1   2.25   2.75   4

    When the player taps, you'd check the elapsed time against the current column of that row. For each tap, increase the column "index" number by one so that you're checking the correct value. The "window" would mean that if the player taps the 3rd time at 2.65 to 2.85 elapsed seconds, it's still correct, for example.

    Edit: I should have read @Braydon_SFX's response first... I repeated 90% of what he said. :p

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Again, here's a partial demo.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.