Gravity Change

VoidedSkyVoidedSky Member Posts: 1,095
edited November -1 in Working with GS (Mac)
Hi, I was wondering if it was possible to change the way gravity affects, so when you flip the ipod the gravity changes.
~Thanks

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    Anyone? I would like to be able to change the direction gravity pushes down on
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, you can easily set the gravity of a scene to be positive or negative, in the Scene Attributes, you can set it to 500, or 1000, or -100 or whatever.

    INSTANCES of an Actor in the Scene have access to the Scene Attributes.
    (The prototype of the actor does not...)
    (Double click on an actor already in the Scene to see this. You'll need to unlock it first)

    As such, you could have one actor in the Scene that's just out of the view/Invisible and acts as sort of a "Gravity Controller"

    You could create a global game attribute called something like CurrentGravity.

    Adjusting the accelerometers on the device would adjust this value accordingly

    Then have the Gravity Controller adjust the gravity of the Scene based on this global attribute.

    Hope this helps!
    Joe
  • VoidedSkyVoidedSky Member Posts: 1,095
    Thank you so much for your reply, is there any way to make the gravity sideways?
    ~Thanks again
  • stanimationstanimation Member Posts: 406
    I had the same issue with my new game "golf Ball Juggle". what I decided to do is just have a constant sideways acceleration applied to my actor. Work fine for me. Check it out.

    http://gamesalad.com/game/play/30518
Sign In or Register to comment.