大约有 73 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
... Daniel • 2018-06-30 22:21 我知道教程里是用this.cMask.graphics.drawCircle(80,80,50,"#ff0000");画出一个圆形遮罩,如果我要动态改变遮罩的大小,是要重新画一个圆吗,还是有办法获得圆的半径直接修改 晓风残月 • 2018-08-27 16:35 @daniel...
来源: Laya_社区 发布时间: 20180629
...rite = new Laya.Sprite() let render = new Laya.Sprite(); render.graphics.drawCircle(0, 0, 40, "#ff0000"); this.render = render; sprite.mask = render; 当调用 sprite.destroy();时,游戏就卡死了 现在只发现这一个机型会卡死 2019-07-02 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190702
... 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
...unction CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { ...
来源: Laya_社区 发布时间: 20160424
...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
...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
...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
...////////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
... 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
...age.frameRate=Laya.Stage.FRAME_SLOW; var sp=new Laya.Sprite(); sp.graphics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); (图3-1) 此时FPS显示30,并且在鼠标移动时,可以...
来源: Laya3.0_文档 发布时间: 20251010