khleug35 Posted January 19, 2018 Share Posted January 19, 2018 I use the following example to get start. https://phaser.io/examples/v2/arcade-physics/shoot-the-pointer Is it possible to set the fix point for sprite rotation? Like the following images I try to use sprite..anchor.setTo (0.1,0.5), but not successful, Thanks you very much Link to comment Share on other sites More sharing options...
casey Posted January 19, 2018 Share Posted January 19, 2018 When you say that's not successful, what's the issue? Is it not rotating at the right spot, or not rotating at all? Link to comment Share on other sites More sharing options...
khleug35 Posted January 20, 2018 Author Share Posted January 20, 2018 8 hours ago, casey said: When you say that's not successful, what's the issue? Is it not rotating at the right spot, or not rotating at all? Thanks for remind!! I just use photoshop to set the image size , i works for me! Thanks Link to comment Share on other sites More sharing options...
head Posted January 24, 2018 Share Posted January 24, 2018 is this what you are looking for? https://phaser.io/examples/v2/sprites/pivot Link to comment Share on other sites More sharing options...
in mono Posted January 24, 2018 Share Posted January 24, 2018 An anchor is set in fractions, i.e. (1, 1) is the bottom right corner and (0.5, 0.5) is the middle (no matter how big the sprite actually is), whereas a pivot is in pixels (thus different for each sprite). Link to comment Share on other sites More sharing options...
Recommended Posts