大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
Laya_社区(974) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3)
...xture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ...
来源: Laya_社区 发布时间: 20170329
....8 json图集加载问题 我这样载入场景问题出现在哪呢?? graphics alpha 问题 HTMLDivElement 2.0 排版问题 问题状态 最新活动: 2018-08-03 11:19 浏览: 1150 关注: 2 人 清水煮豆 • 2018-08-06 21:10 let str ="&nbsp;&nbsp;&nbsp;<span style='color...
来源: Laya_社区 发布时间: 20180731
...ar ani:Animation = new Animation(); ani.loadAnimation("role.ani"); var gra:Graphics = ani.frames[0]; var texture:Texture = gra._one[0];//取得纹理 //如何取得纹理的pivotX和pivotY 如何取得role.ani配置中的pivotX和pivotY 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180203
...); maskSP = new Sprite(); maskSP.graphics.drawPath(0, 0,maskSPArr, {fillStyle: "#00ffff"}); bg.mask = maskSP; Laya.stage.addChild(maskSP); 显示出来的遮罩比画的图形多了一块 在线等答复 各个大大们 附件 : -...
来源: Laya_社区 发布时间: 20161116
... TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read property 'events' of undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor Uncaught TypeErro...
来源: Laya_社区 发布时间: 20190418
...tion () { function tankSprite() { this.speed_x = 3; this.speed_y = 4; this.graphics.drawRect(0, 0, 90, 90, '#aabbcc', '#bbccdd', 1); Laya.stage.addChild(this); var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() -...
来源: Laya_社区 发布时间: 20170920
...-06-04 13:30 浏览: 1598 关注: 3 人 ryan • 2018-12-17 19:28 应该是graphics 的大小一旦超过2016,混合模式就不起作用了。 sean • 2018-12-18 15:34 暂时没解决,直接判断超过这个像素就不画这个blendMode了 ryan • 2018-12-21 09:33 @Sean:另辟蹊径解决...
来源: Laya_社区 发布时间: 20181122
...百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); //画进度 let point: { x: number, y: number, hudu: number } = this.cal(216, 216, 205, Math.abs(Math.floor(percent * 360) ) - 90); //现在...
来源: Laya_社区 发布时间: 20190629
...{ export 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
...预加载后获取到的是一个Texture类型对象,可以直接通过graphics.drawTexture显示 2016-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Jackevent 相关问题 两个对象new了一个相同的对象,调用第...
来源: Laya_社区 发布时间: 20160505