How to accelerate my actor when it is already moving at a speed ?
vectorstudio
Member Posts: 50
my actor is moving at speed 50
now I press key "w" in order to accelerate it.
at this moment, my actor stop, and then begine to accelerate.
how to make it begine accelerate with initial speed 50 ?
Answers
d.pcs.baidu.com/thumbnail/f727c1ee8298e8243ba4729cde2e41d0?fid=3542825546-250528-705856031844904&time=1423018800&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-azkpvJC8rZaAiugXkiGHGjKpfeY%3D&rt=sh&expires=2h&r=648570980&sharesign=unknown&size=c710_u500&quality=100
because my actor's Drag attribute is 30, so if change velocity,it will move first,and then stop. it can't move on.
so i use the Move behavior.
http://d.pcs.baidu.com/thumbnail/33a2b5de42442675909e4f67f01ae288?fid=3542825546-250528-1086674131225881&time=1423018800&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-FnEH/k+lXsyl0z2jdifAMvILtZs=&rt=sh&expires=2h&r=601277011&sharesign=unknown&size=c710_u500&quality=100
problem solved,do like this:
when key w is down
change velocity 50
accelerate 200
else
move 50
Change drag to 0.
thanks very much. i did it another way.
it's ok now, ^_^