Skip to content

Conversation

kackyt
Copy link

@kackyt kackyt commented May 26, 2019

Fixed a bug that FastTMXLayer does not reflect opacity and anchor point.

Size s = Director::getInstance()->getVisibleSize();
auto rect = Rect(Camera::getVisitingCamera()->getPositionX() - s.width * 0.5f,
Camera::getVisitingCamera()->getPositionY() - s.height * 0.5f,
Vec2 anchor = getAnchorPoint();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use cont reference is better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I fixed it.

@minggo minggo added this to the next milestone Jun 11, 2019
@minggo minggo merged commit 9b45665 into cocos2d:v3 Jun 11, 2019
This was referenced Aug 29, 2019
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

Successfully merging this pull request may close these issues.

2 participants