How do I make an arrow point toward an object

Get help using Construct 2

Post » Fri Aug 15, 2014 6:31 pm

I want an arrow image to point toward an object that randomly appears somewhere in the layout.

I made it every tick - set angle toward object.x, object.y but the arrow will not face directly at where the object is and even though I used every tick it doesn't correct itself if you move around the object.
B
10
S
4
Posts: 56
Reputation: 919

Post » Fri Aug 15, 2014 6:41 pm

is the arrow pointed right in the original image?
is the origin of the arrow at the left?

actually the origin doesn't need to be on the left, but it could be off in comparison with the arrow sprite..
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 » Fri Aug 15, 2014 7:04 pm

Yeah. The arrow is pointed toward the right in the original image.
The origin is in the middle. I have tried left and right but it didn't seem to effect it that much.

I tried to duplicate what is going on and made a capx of it here -https://www.dropbox.com/s/ky4nsqju175cs24/arrowproblem.capx-
B
10
S
4
Posts: 56
Reputation: 919

Post » Fri Aug 15, 2014 7:21 pm

Issue is your arrow is on a different layer with different paralax..

Here's one way to solve it..
You do not have the required permissions to view the files attached to this post.
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 » Fri Aug 15, 2014 7:32 pm

It works perfectly. Thanks so much. I never knew about being able to set positions to the viewport like that.
B
10
S
4
Posts: 56
Reputation: 919


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests