Wysłany: 2020-04-22, 00:59
Vander0832
Mapper/Grafik
Wiek: 28 Na forum: 3644 dni Posty: 52
Nick w MP: Vanderek
Piwa : 1105
Siemano, potrzebuje wiedzie? jak zrobi? pulsuj?cy visualiser jak na Desire RPG.
https://www.youtube.com/watch?v=stejbWkl108
Nie wiem jak go zrobi?:
dxDrawImage ( 0 , 0 , sx , sy , 'files/visualiser.png' , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ))
Wysłany: 2020-04-22, 03:01
_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
function math . round ( number , decimals , method )
decimals = decimals or 0
local factor = 10 ^ decimals
if ( method == "ceil" or method == "floor" ) then return math [ method ]( number * factor ) / factor
else return tonumber (( "%." .. decimals .. "f" ): format ( number )) end
end
if music then
local bit = getSoundFFTData ( music , 2048 , 2 )
for i , v in ipairs ( bit ) do
anim = math . round (( v * 420 ), 0 ) > 540 and 540 or math . round (( v * 420 ), 0 )
dxDrawImage ( x , y , w , h , 'light.png' , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , anim ), false )
end
oczywi?cie if music then podpinasz pod swoj? muzyke.
Tagi: pulsujący :: visualiser :: rytmu :: muzyki
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: