最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Depracated Lua Functions

2023-08-31 01:31 作者:是白不是懷特  | 我要投稿

懶得查api復(fù)制過來的 Object Functions luaSpriteMakeGraphic(tag:String, width:Int, height:Int, color:String) Deprecation of makeGraphic(); Initializes the creation of a colored fill texture. tag - The sprite object tag name to be used. width - The width value in pixels of the object. height - The height value in pixels of the object. color - The hex color value of the object. luaSpriteAddAnimationByPrefix(tag:String, name:String, prefix:String, framerate:Int = 24, loop:Bool = true) Deprecation of addAnimationByPrefix(); Adds the specified animation of the sprite object. tag - The sprite object tag name to be used. name - The name of the animation to be played. prefix - The prefix name inside the xml file to be played. framerate - How many frames per second does the animation has; Defualt is: 24. loop - Whether will the animation will loop when the animation is finished; Defualt is true. luaSpriteAddAnimationByIndices(tag:String, name:String, prefix:String, indices:String, framerate:Int = 24) Deprecation of addAnimationByIndices(); Adds the specified animation with each indices/frames of the sprite object. tag - The sprite object tag name to be used. name - The name of the animation to be played. prefix - The prefix name inside the xml file to be played. indices - The specified indices/frames of the animation; Example: 1, 2, 3. framerate - How many frames per second does the animation has; Defualt is: 24. luaSpritePlayAnimation(tag:String, name:String, forced:Bool = false) Deprecation of playAnim(); Plays an animation of the sprite object. tag - The sprite object tag name to be used. name - The name of the animation to be played. forced - Will resets if the animation is played again; Defualt is false. objectPlayAnimation(obj:String, name:String, forced:Bool = false, ?startFrame:Int = 0) Deprecation of playAnim(); Plays an animation of the sprite object. obj - The sprite object tag name to be used. name - The name of the animation to be played. forced - Will resets if the animation is played again; Defualt is false. reverse - An optional parameter, Will play the animation from the last to the start frame. startFrame - An optional parameter, The specified starting frame of the animation. characterPlayAnim(character:String, anim:String, ?forced:Bool = false) Deprecation of playAnim(); Plays an animation of the sprite object. obj - The sprite object tag name to be used. anim - The name of the animation to be played. forced - An optional parameter, Will resets if the animation is played again; Defualt is false. setLuaSpriteCamera(tag:String, camera:String = '') Deprecation of setObjectCamera(); Changes the object camera state. obj - The object tag name to be used. camera - The camera state to be set in; Can be either: camGame, camHUD or camOther. setLuaSpriteScrollFactor(tag:String, scrollX:Float, scrollY:Float) Deprecation of setScrollFactor(); Changes the object that moves along the camera when switching to characters. obj - The object tag name to be used. scrollX - The x value of the scroll to be set. scrollY - The y value of the scroll to be set. scaleLuaSprite(tag:String, x:Float, y:Float) Deprecation of scaleObject(); Sets the object size by scale properties. obj - The object tag name to be used. x - The scale.x value of the object to be set. y - The scale.y value of the object to be set. Value Setting & Getting Functions setPropertyLuaSprite(tag:String, variable:String, value:Dynamic) Deprecation of setProperty(); Sets the current property variable inside the Playstate with a new value. tag - The variable inside the Playstate or object to be used. variable - The property attribute for the object; Example: x, y, alpha, etc. value - The new value to be set. getPropertyLuaSprite(tag:String, variable:String) Deprecation of getProperty(); Gets the current property variable inside the Playstate current value. tag - The variable inside the Playstate or object to be used. variable - The property attribute for the object; Example: x, y, alpha, etc. Sound & Music Functions musicFadeIn(tag:String, duration:Float, fromValue:Float = 0, toValue:Float = 1) Deprecation of musicFadeIn(); Makes the sound fade-in at the start when of the sound. tag - The sound object tag name to be used. If you want to fade the music leave the tag parameter blank, not a nil value. This will work on fade and volume/time functions. duration - The duration length of the sound to fade-in, from fromValue and toValue. fromValue - An optional parameter, The starting volume of the fade; Goes from 0 to 1; Defualt value: 0. toValue - An optional parameter, The ending volume of the fade; Goes from 0 to 1; Defualt value: 1. musicFadeOut(tag:String, duration:Float, toValue:Float = 0) Deprecation of musicFadeOut(); Makes the sound fade-out at the end of the sound. tag - The sound object tag name to be used. duration - The duration length of the sound to fade-out, from toValue. toValue - An optional parameter, The ending volume of the fade; Goes from 0 to 1; Defualt value: 0.

Depracated Lua Functions的評論 (共 條)

分享到微博請遵守國家法律
宜丰县| 贵德县| 高碑店市| 怀仁县| 文化| 和田县| 沙坪坝区| 宣化县| 天峨县| 如东县| 乌拉特后旗| 苍溪县| 桐城市| 株洲县| 临夏市| 辽宁省| 茂名市| 中牟县| 会宁县| 平昌县| 安图县| 安达市| 遵化市| 洞头县| 台湾省| 汉阴县| 田阳县| 青冈县| 合水县| 信阳市| 休宁县| 昌江| 鄢陵县| 临邑县| 依兰县| 策勒县| 会同县| 寿宁县| 隆德县| 瓮安县| 寻甸|