Forum > Texturing and 2D Art
Cinematic to 2D art
<< < (3/4) > >>
Lawes:
Thx, but im not a lua scripter. Idk where i need to save the code and how active him with my BLP list. :/
osler:
I´m not very skilled in Lua, but i think that it should be something like this:
--- Code: ---local init = 0 local numframes = 10 --Change 10 by the number of frames
function ChangeBackground() FunctionToSetTheBackground(init) --[[Maybe something like: function SetBackground(id) frame:SetTexture("route/to/the/blp"..id..".blp") end]] init = init+1; if ( init == numframes ) then init = 0; end return init; end
local total = 0 local function onUpdate(self,elapsed) total = total + elapsed if total >= 2 then --Change 2 by the FPS you want (2 = 0.5 fps, 1/30 = 30 fps) ChangeBackground() total = 0 end end local f = CreateFrame("frame") f:SetScript("OnUpdate", onUpdate)
--- End code ---
Steff:
Ond login lua script would be a good place.
Lawes:
thx for u help but i dont know where i can activ the script
(i tryed avi to gif but only green screen)
stoneharry:
--- Quote from: "Lawes" ---thx for u help but i dont know where i can activ the script
(i tryed avi to gif but only green screen) --- End quote ---
WoW does not support the GIF format.
There are interface files for in game (FrameXML) and before you get in game (GlueXML). You will need to insert your code into the GlueXML AccountLogin.lua and use a modified binary to allow edits to this directory.
Do some google'ing and research into how WoW supports images, and how the GlueXML folder works (like a WoW addon).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|