Change self motion to accelerate?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Okay I have buttons for movement. And in my actor I used when game.left(right,jump) is true,
change self motion to...and so on..

My question is now, how do I change this to the behavior accelerate? Accelerate then direction and speed, but how do I say when buttons are not pressed (left,right,jump is false) stop moving actor immediately...

Thanks to everyone :)

Comments

  • JPickardJPickard Member Posts: 477
    Oooh, I need something similar to this too. *bump*
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    in your rules when you have when key left is pressed or when attribute=1 accelerate

    open up the otherwise section of those rules and change the linear velocity to 0
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay to stop the actor just say change velocity to 0 :)

    But the other problem is that the actor accelerates very slowly ://
    How do I change that?

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yeah but isn't there a way to make it like when using the behavior change attribute velocity x?

    Because when I change it to 1000, it starts again slow for a short time and then goes very fast, to fast ://
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Or I am wrong?

    :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I don't wanna use change velocity...I'd like to have it with accelerate, but having the same movements... ://

    And when using accelerate, the actor first starts slow and then goes faster and faster...

    When using velocity the actor moves on the same speed every time...

    ://
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Alex0407 said:
    I don't wanna use change velocity...I'd like to have it with accelerate, but having the same movements... ://

    And when using accelerate, the actor first starts slow and then goes faster and faster...

    When using velocity the actor moves on the same speed every time...

    ://

    your not really making sensce, THats what acccelerate does it starts slow and goes faster and faster till you reach the same speed. Thats what accelerating is. For just a constant speed you use change velocity or change the self motion linear attribute.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Ah okay, means you are also using velocity for movement in your games?
Sign In or Register to comment.