• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 115 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0031 秒)

71. 刮刮卡效果实现 [ 54%]

...seX = ape.mouseX; } }else{ mouseX = ape.mouseX; } interactionArea.graphics.drawCircle(ape.mouseX, ape.mouseY, 20, "#000000"); } 效果如下   附件 : --> 2017-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

来源: Laya_社区 发布时间: 20170615

72. 小游戏导入手机后Sprite.Mask没有正常显示 [ 54%]

... 0, 0, 80, 80) that.addChild(sp)  var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = cMask //sp.addChild(cMask) //sp.removeChild(cMask) sp.pos(7,14) console.log(cMask.x, cMask.y) }, null, "image"))   一个圆形的遮罩显示微信头像.. 2018-07-10 添加评论...

来源: Laya_社区 发布时间: 20180710

73. layabox可以做格子效果?可以帮忙看看吗? [ 54%]

...子里放圆圈怎么弄? cyqcyqcyq • 2017-12-30 15:42 再用graphics.drawCircle(0, 0, 5, "#000000")即可 cyqcyqcyq • 2017-12-30 16:25 @gaowei2024:676748318 casd12222003d • 2017-12-30 22:35 @gaowei2024:用程序去画图,这个我只在TC的时候干过,现在都是用图片...

来源: Laya_社区 发布时间: 20171230

74. 圆不跟谁 sprite 一起缩放? [ 54%]

...tSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel);  this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(...

来源: Laya_社区 发布时间: 20190314

75. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 54%]

...adSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sightBeadSprit...

来源: Laya_社区 发布时间: 20171012

76. laya.display.Graphics [ 54%]

...标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制圆形。 Graphics  drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制...

来源: laya_api 发布时间: 20170929

77. 绘制图形的BUG [ 53%]

...hics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shap...

来源: Laya_社区 发布时间: 20170124

78. import自己写的类,new出来后为什么一片漆黑 [ 53%]

...class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要我new它,都没addChild到舞台上,运行...

来源: Laya_社区 发布时间: 20180205

79. 关于环形进度条,进度不能重置问题 [ 53%]

...0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff"); this.circle.blendMode = "destination-out"; } Laya.class(IndexView,"IndexView",_super); IndexView.prototype.loadProgress = function(){ this.box.addC...

来源: Laya_社区 发布时间: 20170807

80. DrawPie例子中无法显示遮罩区域 [ 53%]

...-13 1 1 分享 微博 QZONE 微信 Chenyazhi 赞同来自: 当drawPie换成drawCircle遮罩正常。 2018-03-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Chenyazhi 相关问题 2.0一不小心删了bin目...

来源: Laya_社区 发布时间: 20180313