8000 这其中有一个隐藏bug,小球在一定数量的积累下,标识球会消失了 · Issue #2 · windstormeye/cocos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
这其中有一个隐藏bug,小球在一定数量的积累下,标识球会消失了 #2
Open
@ghost

Description

在小球数多的情况下:

groundSprite.js 先发生了碰撞 this.game.isFirstBoll = true;

             this.schedule(function(){
                 this.indexBoll.enabled = false;
                 this.isFirstBoll = false;
             }.bind(this), 0.08 * (this.allBolls - 1), 1); // 延时比碰撞晚

临时办法:发生碰撞时 unschedule 这个函数就可以了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0