Set the origin

Get help using Construct 2

Post » Mon Mar 26, 2012 5:42 am

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

Thankssuperkew2012-03-26 06:31:26
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Mon Mar 26, 2012 5:50 am

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.Erndog2k2012-03-26 05:51:12
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Mon Mar 26, 2012 6:28 am

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.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Mon Mar 26, 2012 7:17 am

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.
B
24
S
5
G
2
Posts: 104
Reputation: 3,136

Post » Mon Mar 26, 2012 7:18 am

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.
B
24
S
5
G
2
Posts: 104
Reputation: 3,136

Post » Mon Mar 26, 2012 8:30 am

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.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon Mar 26, 2012 12:15 pm

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

Thanks for the help guys :)
B
22
S
7
G
3
Posts: 189
Reputation: 4,270


Return to How do I....?

Who is online

Users browsing this forum: BipolarMike, Televangelist, totoe and 20 guests