Reputation: 77
Is there a way to make the screen display responsively position a Sprite in the bottom right corner of the application, no matter what the game screen width may be?
Upvotes: 2
Views: 811
Reputation: 530
Yes. Set the origin of the Sprite to x=1,y=1 and position equal to game width and game height. Here is a pseudo code:
mySprite.setOrigin(1, 1);
mySprite.setX(this.sys.game.width);
mySprite.setY(this.sys.game.height);
Upvotes: 1