Is there a downloadable demo for rolling something around with the acc

JamesZeppelinJamesZeppelin Member Posts: 1,927
edited November -1 in Working with GS (Mac)
Something labyrinth-esque

Seems like something would be here there but im not finding it.

I need something to roll around in a game im working on

I guess i could mess around with the acc and drag but if someone has one made it would be handy

Comments

  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    lol done that a few times?

    thanks
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    I must be missing something

    I made a rule for each direction when i put that in where the little "e" is my scene is just black
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Ok , I think im missing something important

    Do i need to select the attribute option in the rule.. then game.acceromotor.x = "your e thing here"
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Cool i got that part (and thanks, I would have never came up with that)
    But I'm missing th obvious part. D i hit the "e" in a rule after i put in attribute game.acc.x or y =

    and then add acc or move into that rule

    or do you put all that in one rule and it just makes it move
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    james@robotsvswizards.com
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    thanks!!

    If you're ever in northern cali drinks on me
    You can even get the fancy stuff like Babst Blue Ribbon!!! haha
  • zincotroidzincotroid Member Posts: 6
    Were you putting those expressions in the "accelerate" or the "accelerate towards" behavior?
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Yeah
  • whoisonlinewhoisonline Member Posts: 12
    Hi.. Love GS and looking forward to getting the pro.. I too can't get the accelerometer to work.. Is there a working example? Sorry .. Perhaps I'm missing something. I got the game salad viewer working and the games run no problems it seems, then I followed your instructions on YouTube but alas .. No luck. The direction arrows work but not the accelerometer .. Any further help would be very appreciated from anyone .. Thanks
  • whoisonlinewhoisonline Member Posts: 12
    I forgot to mention, I followed these instructions to the letter

    and I just get a square that doesn't move on my iPhone .. Could it be something wrong with my setup??
  • jb15jb15 Member Posts: 602
    Most likely not. Have you tried restarting GS, and making a new project, and then doing the video?

    I had to do it twice to get it to work on mine. All I had to do was restart GS.
    ___________________________________________________________________________________
    One Touch Ninja Platformer Template
    Red Bouncing Ball Template
  • Rob2Rob2 Member Posts: 2,402
    Without a doubt the best way of sorting out accelerometer problems is with a bunch of display texts to show you whats going on. You will also see what a lively little fellow it is :)
  • whoisonlinewhoisonline Member Posts: 12
    Hi jb15 Thanks for the tip. I restored GS 2 times and restarted my MacBook pro .. Opened my test app as indicated above... But still won't move object with iPhone.. Strange though. It works with another example that reads out x y z but actor does not move.. Hehe .. Looks like it will be a long night for me ! Any other tips ? Totally lost .. Thanks :-)
  • whoisonlinewhoisonline Member Posts: 12
    Do you think I might need to redo as indicated in the YouTube video after I restart?
  • whoisonlinewhoisonline Member Posts: 12
    I re did it all again. Still no luck! Mmm.. I'm starting to feel that something could be buggy here.. Anyone got an example that works on their dvice? Last piece of the puzzle .. :-( any further tips will be appreciated .. Thanks
  • jb15jb15 Member Posts: 602
    Try the display text thing rob suggested. Use Display Text > Device > Accelerometer > x or y or anything.

    Does the number change when you move the phone around?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    dont forget guys we have a debugger now
  • whoisonlinewhoisonline Member Posts: 12
    Hi guys.. Some success .. When I display text of accelerometer on iPhone its working, the numbers are changing. But the actor is still not moving.. Interesting.. Am I not getting something basic here? Why won't the actor move ! :-) I'm determined to get this before I sleep hehe
  • jb15jb15 Member Posts: 602
    Then somethings wrong with your code.

    Or something. :) My suggestion is to go through the whole video again in a new project, and make sure each and every key you type is the same one that's in the video.
  • whoisonlinewhoisonline Member Posts: 12
    I just finished doing the tutorial once more.. Still can't see why it won't work. Perhaps a crucial part I require to follow is missing in above tutorial. The accelerometer on device is working as we can see by the accelerator display text. If the actor won't move I'm thinking it's the tutorial that might be missing something . Any further tips? Anyone have an example I can test to make sure it's not my setup? thanks
  • whoisonlinewhoisonline Member Posts: 12
    Hi jb15.. I did that already, completely new project and exact steps.. I can even send it to someone to review. Can projects be posted here? Maybe it will work on someone else's device. If so, then it's my setup I guess
  • jb15jb15 Member Posts: 602
    Here's a working labyrinth setup:

    http://www.mediafire.com/file/66i77xt0xz1uang/labrynth_jb15.zip

    ___________________________________________________________________________________
    One Touch Ninja Platformer Template
    Red Bouncing Ball Template
  • whoisonlinewhoisonline Member Posts: 12
    Thanks jb15.. I really appreciate your help.. thanks for sending me a working labyrinth setup .. I just tested it and nothing happens on it for me .. I wonder why it wont work for me.. can we now assume there is something wrong with my setup?
  • whoisonlinewhoisonline Member Posts: 12
    Thanks jb15 .. I just had a look at the code you sent thru .. its the same as mine practically .. so I did follow the instructions correctly it seems.. my app and your app both dont work on my iphone .. the display text for the accelerometer works. Also .. other apps work fine without accelerometer .. im thinking its either my setup on the macbook or the gamesalad viewer on my iphone.
  • jb15jb15 Member Posts: 602
    Yeah. That's crazy. To have doodle jump work, but not GS, that's wierd.

    Of course, GS is in beta. So how about removing and reinstalling the GS viewer?

    ___________________________________________________________________________________
    One Touch Ninja Platformer Template
    Red Bouncing Ball Template
  • whoisonlinewhoisonline Member Posts: 12
    wooo hooo ! ... thanks jb15 .. you rock !
    You helped me troubleshoot this .. so .. it had trouble with doodle jump .. so then i went into settings and I noticed that the date and time were not setup correctly .. so I set the date and time .. and bam .. it worked .. as did the first bit of code i wrote in the first place ..

    so there you go .. the date and time set correctly does the trick .. funny .. i spent the last 5 hours tryiing to work this out .. now I can finally get some rest and go to sleep :-)
  • jb15jb15 Member Posts: 602
    Glad to help, and good night. :)

    ___________________________________________________________________________________
    One Touch Ninja Platformer Template
    Red Bouncing Ball Template
Sign In or Register to comment.