ReinVO Posted May 30, 2013 Share Posted May 30, 2013 Dear PIXI people, First of all: I love PIXI! It's a very promising library. I'm creating a new game with it and will share the work with you when it's done. Because of the young age of this library I notice a lack of features, tho. For instance basic geometry drawing is really needed and helps alot while developing. Anyway, at this moment I'm looking to flip a sprite. Is this possible? If so, how? Again: thanks for this already amazing library! Best,Rein Quote Link to comment Share on other sites More sharing options...
enpu Posted May 31, 2013 Share Posted May 31, 2013 Hi, I think you can flip a sprite by scaling it negative, example:sprite.scale.x = -1; flatliner 1 Quote Link to comment Share on other sites More sharing options...
ReinVO Posted May 31, 2013 Author Share Posted May 31, 2013 Oops, I tried sprite.scale = -1; Stupid me. Thanks a lot! Quote Link to comment Share on other sites More sharing options...
deniswhite8 Posted August 21, 2013 Share Posted August 21, 2013 Hi all!How I can flip my Sprite and MovieClip? sprite.scale.x = -1 and sprite.scale = -1 doesn't work (both in Canvas and in the WebGL mode) Sorry for my bad English. UPD:The problem is solved, everything worked. I'm just stupid Sorry. Quote Link to comment Share on other sites More sharing options...
linonetwo Posted February 8, 2020 Share Posted February 8, 2020 This is not working, if you set the width of spirit together. Quote Link to comment Share on other sites More sharing options...
jonforum Posted February 8, 2020 Share Posted February 8, 2020 (edited) 13 hours ago, linonetwo said: This is not working, if you set the width of spirit together. base math sprite.scale.x*=-1; width and scale are same thing scale are the normalised value. Edited February 8, 2020 by jonforum flatliner 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.