Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的讲话泡泡在说话的人旁边,但我该如何改变位置?我不想有更多的动画,这可能吗?链接:http : //www.tlu.ee/~kristo93/Eritamine%20-%20puhas/p6hi.html 例如,下一个 tere 将位于学生旁边。
您使用 kinetic.js 创建的任何组或元素总是有一个 XY 坐标您只需要操作包含您的语音云的组的 XY 属性。假设您对该云组的引用称为 cloudGroup 然后使用如下方法设置 X 和 Y 属性:
cloudGroup.setX(100);
cloudGroup.setY(100);
因此,只需插入适合您所需位置的任何内容而不是 100。