大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
Laya_社区(141) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya3.0_文档(6) Laya_示例(6) Laya2.0_示例(5)
...Rectangle(0, 0, 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bbbar.viewport.width); }, 1000,...
来源: Laya_社区 发布时间: 20170913
... = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!th...
来源: Laya_社区 发布时间: 20201014
... public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_C...
来源: Laya2.0_文档 发布时间: 20210715
...TypeError: null is not an object (evaluating 'this._style._tf') (anonymous function) (laya.core.js:16463) toParentPoint (laya.core.js:15797) localToGlobal (laya.core.js:15757) getGlobalRecByPoints (laya.core.js:10216) getGlobalPosAndScale (laya.core.js:10224) getTransformRelativeToWindow (laya.core....
来源: Laya_社区 发布时间: 20181020
... = new Sprite; sprite.loadImage("图片路径"); Laya.timer.loop(1000,this,function(){ sprite.y += 1; }) 不知道是不是你想要的? 2016-11-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wcj951627735 相关问题 两个对...
来源: Laya_社区 发布时间: 20161125
...en.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); ...
来源: Laya_社区 发布时间: 20170905
...注释部分出错。/** *@private */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount...
来源: Laya_社区 发布时间: 20170630
...动,你需要手动去改变新添加精灵的位置,像这样 private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } pri...
来源: Laya_社区 发布时间: 20170525
...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...
来源: laya_api 发布时间: 20170929
...代码: var self = this; self.loserPrize.on(Laya.Event.MOUSE_DOWN,self,function(){ self.clickHanlder(); }) Laya.Tween.to(self.loserPrize, { y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self.loserPrize); 大概如上 随手写出来的,就是一...
来源: Laya_社区 发布时间: 20180222