Gravity help

PortymanPortyman Member, PRO Posts: 409
edited November -1 in Working with GS (Mac)
Want to have a ball drop due to gravity but also move left and right depending on the accelerometer. I haven't been successful as of yet and was wondering if this was even possible. It seems when the accelerometer moves left of right, the gravity shuts off.

Thanks

Comments

  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    What are you using to tie the accelerometer action to left/right movement?

    Aslo, I would recommend using an ACCELERATE behavior in the falling actor instead of the scene's gravity settings. This allows the "gravity" to only effect the actors that have it turned on, as opposed to gravity effecting everything...
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Here is something to read to know which movement behaviors you should use:

    http://gamesalad.com/wiki/how_tos:know_which_movement_to_use
  • PortymanPortyman Member, PRO Posts: 409
    I use a rule with accelorometer values with a move attribute to do left or right..left tilt ... Move left... That works fine, but I think that " turns off" the accelerate when the rule is true. I haven't tried to put both an accelerate and a move in the same rule yet. I am not sure that would work either.
  • PortymanPortyman Member, PRO Posts: 409
    Thanks for the response, but I guess my question after reading is

    Is there a way to have an actor move downward while applying a left or right movement.
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Are your MOVE behaviors set to "Additive", because "Statcked" won't work for what you want to do.
  • PortymanPortyman Member, PRO Posts: 409
    That may be my issue... I will have to try it when I get home.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Move overrides acceleration forces (behaviors, gravity,etc). So you could use accelerate instead of the Move Behavior and set the Max Speed for the actor so it doesn't go too fast.
Sign In or Register to comment.