Gravity help.

AdamgoproAdamgopro Member Posts: 310
edited October 2012 in Working with GS (Mac)
ok is there a way to stop an actor being affected by gravity if movable is still ticked? because im wanting an actor to move in direction 180 degrees but gravity is pulling it down and if i unstick moveable it wont move at all?

Comments

  • CluvCluv Member Posts: 229
    I had the exact same question and 3itg answered it for me. You can constrain your x and y attributes to a specific point on the screen and then keep the movable clicked on. It will still be able to rotate, but it won't float down:

    http://forums.gamesalad.com/discussion/49321/breakout-game-working-with-gravity#latest

  • Yovanny369Yovanny369 Member Posts: 105
    I think you should look at the Cannon Physics Template.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Instead of using the over-all game gravity setting you can apply a gravity effect to your individual actors using a Move behavior as the first behavior in their list. This way you can control which actors have 'gravity' and which don't, set different values for different actors, etc.

    Jamie
  • AdamgoproAdamgopro Member Posts: 310
    @jamie_c hmm never thought of this I will give it a try thanks buddy! This will help a lot I had a
    Method where I made invisible wall layers none movable which each actor had to slide on to get to other side but it was seriously time consuming and had a lot of lag.
Sign In or Register to comment.