Navigation Arrow

Get help using Construct 2

Post » Mon Feb 17, 2014 3:20 am

Im making an RPG game with retro feel to it, (I know its a big undertaking) and I want to have an arrow that constantly points to a single spot, even when that spot is off the screen due to parallax of the terrain moving out of the frame. How can i do such a thing?
B
4
S
1
Posts: 19
Reputation: 436

Post » Mon Feb 17, 2014 3:40 am

This should do it:

Arrow: Arrow.angle = angle(Arrow.X, Arrow.Y, Objective.X, Objective.Y).

A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,205
Reputation: 43,832

Post » Mon Feb 17, 2014 2:45 pm

How do I create an event that makes the arrow constantly point towards that space, so that it doesen't point once and stop?
B
4
S
1
Posts: 19
Reputation: 436

Post » Mon Feb 17, 2014 2:46 pm

system every tick - Arrow set angle: angle(Arrow.X, Arrow.Y, Objective.X, Objective.Y)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Feb 17, 2014 2:53 pm

The arrow points to the space at the beginning, but once i move around, it stops. It seems to not recognize the fact that the terrain behind it is moving around.
B
4
S
1
Posts: 19
Reputation: 436

Post » Mon Feb 17, 2014 2:57 pm

Never mind i got it, thanks everyone!
B
4
S
1
Posts: 19
Reputation: 436


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 2 guests