Files
itgmania212121/stepmania/Themes/default/BGAnimations/ScreenEnding2 decorations/song background scroller.lua
T
2009-04-15 19:11:59 +00:00

21 lines
470 B
Lua

local template = Def.ActorFrame {
Def.Sprite {
OnCommand = cmd(LoadBackground,GetRandomSongBackground();scaletoclipped,226,165;y,0;);
};
LoadActor( "background frame" );
}
local t = Def.ActorScroller {
SecondsPerItem = 4.25;
NumItemsToDraw = 4;
TransformFunction = function( self, offset, itemIndex, numItems )
self:y(-188*offset)
end;
OnCommand = cmd(scrollwithpadding,2,3);
}
for i=1,10 do
table.insert( t, template );
end
return t;