Convert between two different polar coordinates?

Get help using Construct 2

Post » Sat Apr 20, 2013 4:02 am

I'm not sure why C2 does this, but the angles used for objects and the angles used for the 8Direction.MovingAngle are on different grids.

This is what the grid looks like for 8Direction:



This is what the grid looks like for objects:



Does anyone know how to convert between the two? I need to compare the angle of my object with the moving angle. I tried subtracting/adding 90, but that doesn't work.Excal2013-04-20 04:02:42
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 20, 2013 4:37 am

C2 has no way to determine a textures orientation.
You have to set that in the image editor when you import it.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Sat Apr 20, 2013 5:32 am

Throws me off at times too, C2 considers the right hand side to be the front of the object...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Sat Apr 20, 2013 5:32 am

[QUOTE=newt] C2 has no way to determine a textures orientation.
You have to set that in the image editor when you import it.[/QUOTE]

By default, the orientation for sprites is the second image I posted. Is there a way to change this?
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 20, 2013 6:20 am

I suppose it's nice if I clarify exactly why I want to do this.

I want my player sprite to show the correct thrusters for moving right and left. What I have works for moving forward and backward, regardless of orientation, but it's the left and right (strafing) movement that isn't working out for me.

Excal2013-04-20 06:21:03
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests