Jump to content

Is there a way to change the positioning handling of the world?


Legomite
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...