Why does adding to the Y axis make something move down?

Get help using Construct 2

Post » Sun Oct 16, 2016 7:50 pm

Heya,

This is probably a silly question. But here goes anyway, if the Y axis goes from negative (down) to positive (up), why does setting an object's Y position to "Object Y position + 1000" (for example) make it go down the screen? I kind of imagined adding to the Y value would make it a more positive number and therefore it would move up...

Cheers!
B
3
Posts: 3
Reputation: 181

Post » Sun Oct 16, 2016 8:02 pm

In 2D screen coordinates, the Y-axis generally increases as you go down the screen. This is the case for C2 and many other programs involving computer graphics.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Sun Oct 16, 2016 8:04 pm

Ok, thanks for the response. So just to clarify, they decided to do the opposite to maths? Seems a little odd...
B
3
Posts: 3
Reputation: 181

Post » Sun Oct 16, 2016 8:18 pm

tomcoppen wrote:Ok, thanks for the response. So just to clarify, they decided to do the opposite to maths? Seems a little odd...


That has a historical reason, I think. The electron beam in a CRT starts in the upper left corner and ends in the bottom right corner. The early Homecomputer uses this coordinate system because it resemble how the electron beam moves.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sun Oct 16, 2016 9:24 pm

Asmodean wrote:That has a historical reason, I think. The electron beam in a CRT starts in the upper left corner and ends in the bottom right corner. The early Homecomputer uses this coordinate system because it resemble how the electron beam moves.


Ahh that's interesting to know. Thank you. :)
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: divsyntax, kellehk, volumetv and 4 guests