Jump to content

How to set coordinates for sprite correctly in Phaser?


weratius
 Share

Recommended Posts

Hello!

 

I have a code:

w = window.innerWidth * window.devicePixelRatio,
h = window.innerHeight * window.devicePixelRatio;

holdLeft = game.add.button(w/2.892, h/1.3092, 'holdLeft', this.holdLeft, this);

 

 

And I have problems setting coordinates to this sprite, for example, I don't know exactly where this one should be and I need to think out some coordinates but then I always need to change it again and again

Maybe there is some another easier way to do it?

Thank you in advance!

I will really appreciate!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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