VictorScripting Posted February 9, 2020 Share Posted February 9, 2020 PESSOAL SÃO DUAS DUVIDAS: 1- COMO EU FAÇO UM EFEITO EM UMA IMAGEM ? TIPO DEIXAR ELA GIRANDO. (EU JA SEI DA PARTE QUE TEM QUE TER IMAGEM DE CADA MOVIMENTO) 2- E COMO EU FAÇO PARA ALGO SURGIR EM EFEITO DE TRANSIÇÃO ? EX:(UM RETÂNGULO SURGIR VINDO DA ESQUERDA ! E PARA NO SEU LOCAL) EU VI ESSA FUNÇÃO MAIS NÃO ENTENDI ALGUÉM ME EXPLICA TBM ? imgTick = getTickCount() currentIMG = 1 now = getTickCount() if now >= imgTick+30 then currentIMG = iif(currentIMG==16,1,currentIMG+1) imgTick = now end dxDrawImage(posX+.6*ih/2,posY+mh/2-(ih/2.5)/2,ih/2.5,ih/2.5,iif(t[1]=="Para","coin","exp").."/"..iif(day==current or isMouseInPosition (posX,posY,mw,mh),currentIMG,1)..".png",0,0,0,nil,true) Link to comment
Tommy. Posted February 9, 2020 Share Posted February 9, 2020 Para ambos você vai usar: interpolateBetween getTickCount Link to comment
VictorScripting Posted February 9, 2020 Author Share Posted February 9, 2020 1 hour ago, Tommy. said: Para ambos você vai usar: interpolateBetween getTickCount pode me mostrar uns exemplos usando ele em DX?? pq n entendi como usa eles dois no dx ? pode mostrar um exemplo pronto de uma imagem girando ? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now