Shake for (x) amount of time

MrshoestoreMrshoestore Member Posts: 181
edited November -1 in Working with GS (Mac)
Anyone know of a way to set up so that If the player shakes their iPhone for a gratuitously long period of time (like, 10 minutes) the game triggers a change attribute behavior?

Comments

  • SkyMapleSkyMaple Member Posts: 817
    Why would you shake it for five minutes? :P
  • MrshoestoreMrshoestore Member Posts: 181
    Lol...

    The idea is to have it be a cheat code that unlocks all levels. But I want to make people work for it if they're going to cheat... and while discussing it among friends, we concluded that the best thing to do is have the player shake the iPhone up and down for 10 minutes!
  • mangaroomangaroo Member Posts: 419
    that is pretty brutal! how were you planning on spreading the cheat code?
  • MrshoestoreMrshoestore Member Posts: 181
    mangaroo said:
    that is pretty brutal! how were you planning on spreading the cheat code?

    I wasn't really, perhaps a blog post or tweet, or post it on some game cheats websites. But really it's just a joke that I want to implement into the game for no other purpose that my own satisfaction of a job well done.
  • mangaroomangaroo Member Posts: 419
    i get where you are coming from but i would go a different way then pain on your customers, perhaps a nicely timed tapping etc so you can show friends who bought it

    if they are going to cheat its because they are stuck right or bored. if they are bored they wont want to shake their iphone for 10 minutes first.

    i would implement a way to skip a level if you are using levels and dont have a way already

    I would also make sure that the cheat did not save and was just temporary so a momentary decision to cheat doesnt ruin the save file = goes well with not having to shake for 10 minutes each time :) just my two cents would like to know the solution myself as im planning on using "shake" later on...sorry i cant be of more help

    or that code can be even more privileged info to go with the shake..
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    !0 mins is sure a long time shaking a phone... and I should know, I've tried it! (Not really) :-) A minute would be long enough; try a bit of R&D, shaking your phone for just 60 seconds; it will seem like it's a much longer time, believe me!

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

  • MrshoestoreMrshoestore Member Posts: 181
    Yea I mean, 10 minutes is probably WAAAAYYYY too long. But that's really besides the point. regardless of the amount of time I decide to set it at when done, it's a matter of the ability to set if shake for (x) time then change attribute.

    And it's not that I'm trying to be a pain to costumers but it's a cheat code... you're not supposed to use it! It's cheating! Cheating is what turns puppies' dreams into nightmares.
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Maybe every second, check to see if it's shaking. If it is, add +1 to an attribute. When it reaches 60 or 600, depending on the amount of time, unlock the levels.
  • MrshoestoreMrshoestore Member Posts: 181
    I was thinking about that, and I'll probably do that, but how do I make it recognize that it's shaking?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    search "shake" in GS creator
  • AsymptoteellAsymptoteell Member Posts: 1,362
    "Shake shake"
    -Maria from Mischief Makers
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    make new Attribute called timer set it 600

    ACTOR 1 (only for testing)
    Diplay text
    Game.timer

    ACTOR 2
    Create rule
    IF Device.accelerator is greater then 10

    Timer rule
    every 1 sec
    Change attribute
    Game.timer TO game.timer-1

    Create rule
    IF Device.accelerator is less then 10

    Change attribute
    game.timer TO 600

    Create Rule
    IF game.timer = 0

    Unlock lvl attribute
Sign In or Register to comment.