Yotam Posted February 25, 2014 Share Posted February 25, 2014 Is there a way to tell the AnimationManager that I want to flip certain frames? I have a spritesheet with a right-facing walk cycle. Must I duplicate the sprites and flip them to face left? Thanks! Link to comment Share on other sites More sharing options...
lessmilk Posted February 25, 2014 Share Posted February 25, 2014 In my games I simply flip the sprite by doing sprite.scale.setTo(-1, 1); jerome and Yotam 2 Link to comment Share on other sites More sharing options...
Yotam Posted February 25, 2014 Author Share Posted February 25, 2014 This works great, thanks. I also addedsprite.anchor.setTo( .5, .5 );so that the sprite reflects about its center. Link to comment Share on other sites More sharing options...
Flexicon Posted March 20, 2014 Share Posted March 20, 2014 Edit: Sorry apparently this was fixed in Phaser 2.0.1 My new problem is that any tileSprite I make ends up being sent to the top of the screen and I can't set it's x and y value o.o Hi I try this and it does the job quite well, however I have no idea how to change the collision area of the sprite after setting anchor. Because if it is halved like that then the right side collision is way too long distance and the left side let's the collide come way too close (like half way into to the sprite). Probably very obvious but I'm new to Phaser and game development in general o.o Link to comment Share on other sites More sharing options...
Recommended Posts