actor is jerking

Hello all,
I want to move an actor from the right edge to the left edge of the screen by using the behaviour "change velocitiy". The problem: The actor is jerking. ´dont know why? I´ve reduce the actor-size...´have change the behaviour to "move"...jerking!
Have anyone an answer?
I want to move an actor from the right edge to the left edge of the screen by using the behaviour "change velocitiy". The problem: The actor is jerking. ´dont know why? I´ve reduce the actor-size...´have change the behaviour to "move"...jerking!
Have anyone an answer?
Comments
Did you flagged on the 'Use max speed' attribute ?
Roy.
there is only a timer by controlling the movement for every 10 seconds. If the actor is colliding with an "trigger-actor" on the left edge another rule will bring the actor back to the startposition. To iterate this action i´ve creat the follow rule:
when collide with trigger-actor
constrain selfposition x to....(startposition)
constrain selfposition y to....(startposition)
change velocity to 0
For every 10 seconds the movement starts again. Thats why i´ve changed the velocity in the rule by 0.
Roy
3 actorAttributes… all real type:
-startX … set to the start X
-startY … set to the start Y
-myTime … leave blank
2 Rules on your movingActor:
1. Rule: when
Attribute: self.Time ≥ self.myTime+10
-changeAttribute: self.Motion.Linear Velocity.X To: whatever you want
2. Rule: When
Event: overlaps or collides with
-changeAttribute: myTimer To: self.Time
-changeAttribute: self.Position.X To: self.startX
-changeAttribute: self.Position.Y To: self.startY
-changeAttribute: self.Motion.Linear Velocity.X To: 0
no additional timers as the actor's time triggers events … and that is always tracking in runtime
@};- MH
and thanks to all! I´ve tested it with the behavious "linear velocity" and "interpolate"....without success. I´ve changed the behavious "constrain attribute" to "change attribute" by this actor. Jerking!
Is it possible actors without seemingly coherence affecting the movements?
@};- MH