[关闭]
@yangfch3 2018-08-07T11:28:47.000000Z 字数 814 阅读 1842

白鹭引擎已知Bug/问题记录

游戏开发


  1. 白鹭的动画 Bug:当缓动的属性与紧密相连的 call 内改变的属性 key 一样时,会出现 call 内属性变更无法生效的情况

    1. egret.Tween.get(this.countDownBitmap).to({
    2. scaleX: 1,
    3. scaleY: 1
    4. }, 900, egret.Ease.sineIn).call(() => {
    5. self.countDownBitmap.scaleX = 5
    6. self.countDownBitmap.scaleY = 5
    7. self.countDownBitmap.texture = RES.getRes('2_png')
    8. }).wait(100).to({
    9. scaleX: 1,
    10. scaleY: 1
    11. }, 900, egret.Ease.sineIn).call(() => {
    12. self.countDownBitmap.scaleX = 5
    13. self.countDownBitmap.scaleY = 5
    14. self.countDownBitmap.texture = RES.getRes('1_png')
    15. }).wait(100).to({
    16. scaleX: 1,
    17. scaleY: 1
    18. }, 900, egret.Ease.sineIn).call(() => {
    19. self.countDownBitmap.visible = false
    20. self.handle.touchEnabled = true
    21. })
    22. setInterval(function () {
    23. console.log(self.countDownBitmap.scaleX)
    24. }, 100)
    1. // 输出
    2. 4.6...
    3. 3....
    4. 2...
    5. 1.3...
    6. 1
    7. 1
    8. 1
    9. ...
  2. 在尺寸较大(在一些大场景游戏中较常见)的 DisplayObject 上使用 cacheAsBitmap 启用位图缓存时可能会出现以下问题,导致页面无法正常渲染

    1. WebGL: INVALID_VALUE: texImage2D: width or height out of range
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注