Sign in to follow this  
Yotam

Reflect the sprites in a sprite sheet?

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.