Set the origin

0 favourites
  • 7 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • I noticed that the x-axis is fine and according to the normal laws of physics, but the y-axis is mirrored.

    I'm not sure why, but it is very unexpecteds.

    Why is it that the origin is at the top left corner, and y values increase as you move down the screen?

    Perhaps there is a setting that can adjust this, I would like to know.

    I haven't found anything while searching...

    Thanks

  • you can set the origin to any object by going into the animation settings and on the left side you will see a target that is the origin symbol, you can set multiple origins (known as image points), look at EXAMPLES in start menu they are all there for you to try out.

  • Thanks for the reply, but that is setting an origin on the object - and is quite easy.

    I mean to set the origin for the entire layout.

    It feels very un-intuitive to have y-values increasing as positive in what would normally be the negative axis.

    There are always ways around this, but now I am more curios to why this has been done.

  • This is actually pretty common in computer graphics: as an example, that's how Windows itself does it! Another example would be coordinates within the browser window. I expect the original reasoning for this probably relates to how a CRT draws it's image: left-to-right, and top-to-bottom.

    It can trip up people who aren't expecting it, but it's no more easy or difficult to work with than the alternative.

  • Oh, and I'm not aware of any option to use an alternative coordinate system with Construct 2; I wouldn't think it all that likely that adding one would be a priority given how common the system currently in use is either.

    Hope the explanation helped satisfy your curiosity. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If it helps you visualize, anything after 0 is negative along the xy's.

    Also when you think about it scrolling just wouldn't make as much sense if the origin started in the middle.

  • Come to think of it, web browsers are the same.

    Thanks for the help guys :)

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