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
6
S
1
Posts: 20
Reputation: 392

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
78
S
23
G
69
Posts: 1,354
Reputation: 44,027

Post » Fri Sep 15, 2017 6:48 am

hi, thanks a lot for ur help
B
6
S
1
Posts: 20
Reputation: 392


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests