Convert between two different polar coordinates?

0 favourites
  • 5 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • 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:

    <img src="http://i.imgur.com/2R9rKV2.png" border="0" />

    This is what the grid looks like for objects:

    <img src="http://i.imgur.com/E4iJYiV.png" border="0" />

    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.

  • C2 has no way to determine a textures orientation.

    You have to set that in the image editor when you import it.

  • Throws me off at times too, C2 considers the right hand side to be the front of the object...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • C2 has no way to determine a textures orientation.

    You have to set that in the image editor when you import it.

    By default, the orientation for sprites is the second image I posted. Is there a way to change this?

  • 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.

    <img src="http://i.imgur.com/xunS0zV.png" border="0" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)