I want to do this
Here
but how?
Develop games in your browser. Powerful, performant & highly capable.
Move to changes the position and the other sets the velocity but you can set the speed at an angle with this:
A=angle of motion
Vector X = -20*cos(a)
Vector Y = -20*sin(a)
Add it to the previous xy to be more like an impulse.
Move to changes the position and the other sets the velocity but you can set the speed at an angle with this: A=angle of motion Vector X = -20*cos(a) Vector Y = -20*sin(a) Add it to the previous xy to be more like an impulse.
it worked thank you so much ^^