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

使用了 Hilo.align 定位导致碰撞检测失效 #108

Closed
ben-yip opened this issue Dec 11, 2017 · 1 comment
Closed

使用了 Hilo.align 定位导致碰撞检测失效 #108

ben-yip opened this issue Dec 11, 2017 · 1 comment
Labels

Comments

@ben-yip
Copy link

ben-yip commented Dec 11, 2017

情况: 新建两个Bitmap,且称为 A 和 B,两个都指定了 width 和 height,A 同时指定了 x 和 y,而 B 不指定 x 和 y,直接使用 align 属性来对齐容器。
遇到问题: 进行A和B的碰撞检测时,会基于B默认的x和y(均为0)作为实际位置来判断,而不是按照其对齐后出现的位置来判断。
而按照使用时的直觉,自动对齐后B的x和y属性应该自动修改为当前实际所在的位置。

如果是我打开方式错误,请开发大佬点一下;
如果这是设定的话我就得需要手动计算这些可视对象的位置然后指明x和y属性了。

@06wj
Copy link
Member

06wj commented Dec 12, 2017

1.1.5 修复了这个bug

@06wj 06wj added the bug label Dec 12, 2017
@06wj 06wj closed this as completed Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants