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

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

21. 缓动-缓动函数演示 [ 81%]

...= parseInt(durationInput.text); }); } private createInputWidthLabel(label: string, prompt: string, x: number, y: number): Input { var text: Text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); var input: Input = new Input(); input.size(50, 20); input...

来源: Laya_示例 发布时间: 20240930

22. 鼠标交互-Hold [ 80%]

...eraction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHe...

来源: Laya_示例 发布时间: 20240930

23. 鼠标交互-Hold [ 80%]

...eraction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, ...

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

24. socket大型项目回调 [ 80%]

...a{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_WS_CLI...

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

25. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 79%]

...r offsetX:number = Laya.stage.width - w >> 1; //显示的字符串 var demoString:string = "LayaBox"; var letterText:Laya.Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for(var i:number = 0,len:number = demoString.length;i(动图2) 结合实...

来源: Laya2.0_文档 发布时间: 20210715

26. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 78%]

... var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var letterText:Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for (var i:int = 0, len:int = demoString.length; i (动图2) 结合实例代...

来源: Laya2.0_文档 发布时间: 20210715

27. LayaNative 0.9.6启动时报错 [ 78%]

....hk.hokbok I/art:     at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6682) 2019-07-22 18:03:33.840 27966-27966/com.lovegame.hk.hokbok I/art:     at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) 2019-07...

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

28. TimeLine运行的小问题 [ 76%]

...p,{scaleY:1},200); timeLine.play(0,false); } private function onLabel(text:String):void { trace(text); }应该是你的代码有问题,以上是我的测试例子,没有出现重复执行的问题,请测试。 注意,label事件的触发是在动画运行之后,一开始增加的label事...

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

29. 骨骼动画-Spine事件 [ 76%]

...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

来源: Laya_示例 发布时间: 20240930

30. 骨骼动画-Spine事件 [ 76%]

...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

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