tweak things for noteskins, can't remember what was changed in the ghostarrow

This commit is contained in:
Alberto Ramos
2011-06-12 00:16:45 -06:00
parent 6c32ca085e
commit e4636a0a50
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -1,12 +1,16 @@
local function Beat(self)
local this = self:GetChildren()
local player = GAMESTATE:GetMasterPlayerNumber()
local playerstate = GAMESTATE:GetPlayerState( player )
local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition()
local beat = GAMESTATE:GetSongBeat()
local beat = songposition:GetSongBeat() -- GAMESTATE:GetSongBeat()
local part = beat%1
part = clamp(part,0,0.5)
local eff = scale(part,0,0.5,1,0)
if (GAMESTATE:GetSongPosition():GetDelay() or false) and part == 0 then eff = 0 end
if (songposition:GetDelay() or false) and part == 0 then eff = 0 end
if beat < 0 then
eff = 0
end