How do I GET EXACT COORDINATES @ AN ADJUSTED LAYER ANGLE

Get help using Construct 2

Post » Thu Oct 06, 2016 8:39 pm

Message: LiteSnacks can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello,

When changing the layer angle, actions interacting w/ the X & Y coordinates seem to hold their original position as if the layer angle was still set to default. For example, if i had a bullet shoot @ an angle towards mouse.x & mouse.y, the bullet will not travel towards the pointer if the layer angle was not set to the default angle. Here's is an quick example; holding the mouse over the target while not on the pole will not cause the bullet to travel to the target:

https://drive.google.com/a/bgcsc.org/fi ... sp=sharing

How do i make it so the bullet always travels toward the mouse point while @ any layer angle?
B
7
S
2
Posts: 14
Reputation: 512

Post » Thu Oct 06, 2016 9:23 pm

The link is broken, I can't see it :3
B
12
S
2
G
4
Posts: 78
Reputation: 3,332

Post » Thu Oct 06, 2016 9:24 pm

Look in the manual about the mouse plugin. You can use and expression like mouse.x("layer 0") to get the position on that layer. It hAndles parallax, angle, etc...
B
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

Post » Fri Oct 07, 2016 5:09 am

Excellent, thank you.
B
7
S
2
Posts: 14
Reputation: 512


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 61 guests