Changed BackgroundEffects files to apply the playback rate to videos. Added GetUpdateRate to ActorFrame and Get/SetDecodeMovie to Sprite. Hope nobody is caught off guard by checkerboard no longer playing videos back at 4x rate.

This commit is contained in:
Kyzentun
2015-02-05 00:37:08 -07:00
parent 72aa6c6164
commit ad877b6dcb
29 changed files with 263 additions and 41 deletions
+8 -1
View File
@@ -6,7 +6,14 @@ local t = Def.ActorFrame {
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
self:scale_or_crop_background()
self:diffuse(Color1)
if self.loop ~= nil then
-- The playback rate in the simfile is used to set the update rate
-- on the ActorFrame, but effectclock("music") causes the sprite to
-- ignore the passed in delta time and use the music time instead.
-- So this passes the update rate in to the texture. -Kyz
if self.GetTexture then
self:GetTexture():rate(self:GetParent():GetUpdateRate())
end
if self.loop then
self:loop(false)
-- make videos start at beginning to prevent sticking on last frame
self:position(0)