Witam, mam pytanie. Jak dokładnie ustawić czas trwania ScreenFade? Chcę tak, aby Hold time trwał 80 sekund, a na operacjach bitowych mi to nie wychodzi, proszę o pomoc.
message_begin( MSG_ONE, g_msg_screenfade,{0,0,0},id )
write_short( 1<<15) // Duration of fadeout
write_short( 1<<13) // Hold time of color - Tutaj ma być 80 s, ale nie wiem jak to zrobić ;/
write_short( 1<<12 ) // Fade type
write_byte ( random_num(0,255 )) // Red
write_byte ( random_num(0,255 )) // Green
write_byte ( random_num(0,255 )) // Blue
write_byte ( 255 ) // Alpha
message_end()
}
Użytkownik venom1324 edytował ten post 30.05.2013 01:07