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

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

41. 缓动-简单的Tween [ 66%]

...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...

来源: Laya2.0_示例 发布时间: 20240930

42. 缓动-时间线 [ 64%]

...ine, Event = Laya.Event; this.timeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDow...

来源: Laya2.0_示例 发布时间: 20240930

43. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 64%]

...t default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是25...

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

44. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 64%]

...playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL....

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

45. 背景音乐文件太大 播放延迟 [ 63%]

...e)         })       public static playBackGroundMusic(url: string, start: number) {         if (soundMsg.isPlayingBgMusic) {             let path = "remote/music/" + url + '.mp3';             Laya.SoundManager.playMusic(path, 1, new Laya...

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

46. animate 动画播放 怎么把攻击 开火 合起来播放 [ 63%]

...url * length 动画最后一帧的索引值, */ private aniUrls(aniName: string, length: number): any { var urls: any = []; for (var i: number = 1; i < length; i++) { //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("imgs/role/wp116/" + aniName + i + ".png");...

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

47. 新手引导在ios浏览器表现异常 [ 63%]

...wTips(posX: number, posY: number, width:number,height:number,skinRes: string) {             this.tipContainer = new Laya.Image();             this.tipContainer.size(width, height);             this.tipContainer.skin = skinRes;             t...

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

48. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 62%]

...nnerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:st...

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

49. swf播放有问题,遮罩动画不能用吗 [ 62%]

...ebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(760,650, WebGL); Laya.stage.frameRate = Stage.FRAME_SLOW; ...

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

50. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 61%]

...播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroTy...

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