Constant gravity of sceen

FallacyStudiosFallacyStudios Member Posts: 970
edited November -1 in Working with GS (Mac)
I'm trying to figure out how exactly you do something like this in GS.



I basically want to do the part where when he turns the screen all the blocks fall downward like there is constant gravity. How do you detect those movements with the phone? Do you use accelerometer?

Comments

  • POMPOM Member Posts: 2,599
    I made this template special for you ,
    The result is almost like the video shows , test it on the device cause it uses the accelerometer !
    http://www.mediafire.com/?x3jbs58284mu9tb

    Things to keep in mind:
    1) in the "game scene" the auto rotation must be turned off (its off in the template)
    2) the "cubes" has max speed on , so they don't accelerate too much (its on in the template)
    3) i made a self attribute to determine the speed of the acceleration, you can change that .
    4) the boxes size is 40x40 , i think in the video they are much smaller so change that also .

    I hope it will help you to get start with your game , keep in mind that too many "movable" actors in the same scene can drop down performance .

    Roy.
  • FallacyStudiosFallacyStudios Member Posts: 970
    Thanks a bunch Roy. I'll check it out. I really appreciate it.
Sign In or Register to comment.