Actor slowing down when accelerating?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
What's wrong when my actor is accelerating very slow and after a certain time he starts to
get faster???

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah thats definition of accelerating :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    And what if I want it to have a constant speed?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    yeah but how when I want to move him to a other actor, I set
    up everythigng with magnitude...

    And if I use change velocity to other players x I cant set speed!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    So I want an actor accelerating when a other actor moves a certain distance. So
    I worked with Magnitude.

    And then I said: When distance < ....
    accelerate

    You understand? :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey so now very precise:

    I have an actor moving on the ground, and every time when he comes to a certain
    position (x-pos) I want another actor to accelerate or move towards him. So I made 2 attributes playersx and playersx and went into my first actor which moves on the ground, there I said constrain attribute. In my actor that gets accelerated I created also an attribute called distance.

    In the accelerated actor I said this

    Constrain attribute distance to magnitude (self.pos.x - playersx, self.pos.y-playersy)

    And finally I said:

    When distance < 120
    Accelerate or Move to, at this point I want the actor to get accelerated to the x position of the ground actor but if possible with constant speed!

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea?!
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Rule

    When distance <120

    Insert 'Change velocity' behaviour (to what ever speed)
    For direction click the 'e' and insert the constrained x of the player
    Make sure its relative to scene and not actor

    Use this same behaviour but pointing at the constrained y as well if needed.

    That will then move at a constant speed as needed
Sign In or Register to comment.