Move Attribute with Gravity?

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
My actor moves left and right with the Move attribute, I want to avoid using Accelerate if posible. My issue is that when the actor, say is coming off of a ramp, it keeps going along the same path and doesn't descend until I press Up on the mouse.

I have gravity on, I've tried adding an accelerate down on the actor..all kinds of things.

How can you get the actor to go back down while he's still in the air or does Move overpower that?

Comments

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Try changing linear velocity x instead of move. It is a little better on processing power, too. Move just moves the direction it is set. I use accelerate to simulate gravity, too as it is a whole lot better on performance.

    Ace
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Thanks, Ace.

    So a change attribute?

    I'm using: When left is pressed, move left and When right is pressed move right...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Rule when left is pressed:

    change attribute self motion linear velocity x to -100 (or any negative value you want)
    Otherwise: change attribute self motion linear x to 0

    Rule when right is pressed:
    change attribute self motion linear velocity x to 100 (or any positive value you want)
    Otherwise: change attribute self motion linear x to 0
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Thanks guys! I'll try the template
Sign In or Register to comment.