Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect texture mapping in Progress Bar with rotated texture atlas #1839

Open
guardianblue opened this issue Aug 20, 2017 · 1 comment
Open

Comments

@guardianblue
Copy link

The bar Sprite of ProgressBar fails to map its texture under filled mode correctly when its SpriteFrame happens to be auto-rotated in the underlying sprite sheet.

Steps to reproduce:

  1. Prepare two images, one for the progress bar track and one for the bar
  2. Generate a sprite sheet, forcing the texture to be rotated (e.g. by tweaking the max width property)
  3. Create a ProgressBar and assign the sprite frames
  4. Set mode to filled
  5. Test in simulator, it should work fine
  6. Test again with mobile build, the bar would look like as if it is set as simple mode
@guardianblue
Copy link
Author

Probably it is an issue with CocosCreator Engine instead of cocos2d-js. Please feel free to close this issue if this is the case.

Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant