Legomite Posted February 3, 2017 Share Posted February 3, 2017 Is there a way to change the Y coordinate thing? It seems to be inverted compared to standard positioning. For example if I wanted to place a sprite at y=100, normally it should go 100 units UPWARDS but instead it goes downwards. Is there a way to invert this? Or do I have to just work around it.... Link to comment Share on other sites More sharing options...
Arcanorum Posted February 4, 2017 Share Posted February 4, 2017 What do you mean by 'normally'? Most 2D reference systems use the top left as x=0/y=0. No, there isn't a way to invert it. Negative x/y values go left/up. There is probably some sane, mathematical reason that this is done, of which I do not know. Link to comment Share on other sites More sharing options...
spencerTL Posted February 4, 2017 Share Posted February 4, 2017 Normal is really what you are used to. I could never get on with cocos2d because it used the coordinate system that the op wants. I believe that the reason is just a hangover from publishing which always used the top left as 0,0. Mathematically it doesn't matter either way. Still, the fact remains, you have to live with it. Some frameworks do have it as a definable option but it must have some impact on performance as it adds another conditional into a frequently accessed part of the engine. Best to get used to it now so that you're not always fighting against it when you consider other frameworks. Link to comment Share on other sites More sharing options...
Recommended Posts