hi folks,
i am making a game in which an arrow is moving from 0 to 90 degree and vice versa. my player and arrow are at the same position. now on pressing space button, i want my player to jump in the same angle and direction, the arrow is at that time.
please help me . how to do this
Develop games in your browser. Powerful, performant & highly capable.
move forward (distance(self.x,self.y,arrow.x,arrow.y)+(60*dt)) at angle angle(self.x,self.y,arrow.x,arrow.y)
see if that works
hi, thanks a lot for ur help