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

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

91. 问一下tween的一些参数怎么设置 [ 49%]

... function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(...

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

92. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 49%]

...////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : https://ask.layabox.com/question/4...

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

93. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 49%]

...400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 this.sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 this.sp.graphics.drawPie(240, 290, 100, 10, 60, "#00ffff"); //绘制圆角矩形,自定义路径 this.sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["a...

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

94. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 48%]

...anel); var panelChild:Laya.Sprite = new Laya.Sprite(); panelChild.graphics.drawCircle(0,0,50,"#ffbb88"); panelChild.pos(100,100); panel.addChild(panelChild); } } new GameMain(); 附件 : --> 2017-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

95. 分包项目, 加载js时报错 [ 48%]

...          var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addChild(v);         }     } }   然后, 报错就在Box上: Uncaught TypeError: Cannot read property 'Box' of u...

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

96. 关于graphics.drawPath手机端和PC端不一致的问题 [ 47%]

...了,我改一下 189*****192 • 2017-04-25 11:45 @cyqcyqcyq: 圆建议 drawCircle 我用你的代码 在ios手机上绘制 也是圆的.你的版本是多少? cyqcyqcyq • 2017-04-25 11:50 1.7.2.因为我并不是要画整个圆,而是想画出问题中的第一张图的效果,所以既需...

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

97. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 47%]

...eSteps[step++]; interactionArea.graphics.clear(); interactionArea.graphics.drawCircle(guide.x, guide.y, guide.radius, "#000000"); hitArea.unHit.clear(); hitArea.unHit.drawRect(guide.x, guide.y, guide.radius, "#000000"); tipContainer.graphics.clear(); tipContainer.loadImage(guide.tip); tipContainer.p...

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

98. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 47%]

...ner); this.interactionArea.graphics.clear(); this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000"); 附件 : --> 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

99. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 45%]

...pe.y = Laya.stage.height / 2; //这里是我加的代码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN, this, this.onStartDrag); } private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragR...

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

100. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 44%]

...aya.stage.mouseY), _colorSpr); var cir:Sprite = new Sprite(); cir.graphics.drawCircle(0, 0, 15, "#fff"); cir.pos(p.x, p.y); cir.blendMode = "destination-out"; _colorSpr.addChild(cir); _htmlCanvas = _colorSpr.drawToCanvas(_colorTex.width, _colorTex.height, _colorSpr.x, _colorSpr.y); _tex = new Textur...

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