want to move player at a definite angle

Discussion and feedback on Construct 2

Post » Thu Sep 14, 2017 7:36 am

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
B
4
Posts: 10
Reputation: 222

Post » Thu Sep 14, 2017 10:32 am

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
B
77
S
23
G
69
Posts: 1,353
Reputation: 43,958

Post » Fri Sep 15, 2017 6:48 am

hi, thanks a lot for ur help
B
4
Posts: 10
Reputation: 222


Return to Construct 2 General

Who is online

Users browsing this forum: AnimH01 and 11 guests