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
8
S
1
Posts: 29
Reputation: 473

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
86
S
26
G
75
Posts: 1,440
Reputation: 47,805

Post » Fri Sep 15, 2017 6:48 am

hi, thanks a lot for ur help
B
8
S
1
Posts: 29
Reputation: 473


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests