Javier Posted July 9, 2013 Share Posted July 9, 2013 Hola amigos. Tengo una duda de como hacer esto: Nosé si me van a entender: Necesito que se vayan creando y destruyendo imagenes cada sierto Tiempo... Como seria? local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img) then local img2 = guiCreateStaticImage(etc,etc,etc) --Me entienden? Seria asi , no? Link to comment
Alexs Posted July 9, 2013 Share Posted July 9, 2013 (edited) Si los tiempos no son muy cortos, podrías usar 'guiStaticImageLoadImage' y 'guiSetPosition' y un timer con una tabla de Imagen y posiciones o bien usar 'dxDrawImage' y 'onClientRender' junto a 'getTickCount'. Edited July 9, 2013 by Guest Link to comment
Javier Posted July 9, 2013 Author Share Posted July 9, 2013 Si los tiempos no son muy cortos, podrías usar 'guiSetStaticImage' y 'guiSetPosition' y un timer con una tabla de Imagen y posiciones o bien usar 'dxDrawImage' y 'onClientRender' junto a 'getTickCount'. Y así como hice yo , podria funciona? Link to comment
Alexs Posted July 9, 2013 Share Posted July 9, 2013 Si los tiempos no son muy cortos, podrías usar 'guiSetStaticImage' y 'guiSetPosition' y un timer con una tabla de Imagen y posiciones o bien usar 'dxDrawImage' y 'onClientRender' junto a 'getTickCount'. Y así como hice yo , podria funciona? No, el estamento de la tercera linea siempre sera falso ya que lo comparas tras crear 'img' y no luego de borrarlo. Link to comment
Javier Posted July 9, 2013 Author Share Posted July 9, 2013 local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img2) then local img2 = guiCreateStaticImage(etc,etc,etc) Y asi?... En tu post anterior no te entendí mucho Link to comment
Alexs Posted July 9, 2013 Share Posted July 9, 2013 local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img2) then local img2 = guiCreateStaticImage(etc,etc,etc) Y asi?... En tu post anterior no te entendí mucho Eso tampoco funcionaria.. tienes Skype? Yo te ayudo a hacerlo. Link to comment
Javier Posted July 9, 2013 Author Share Posted July 9, 2013 local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img2) then local img2 = guiCreateStaticImage(etc,etc,etc) Y asi?... En tu post anterior no te entendí mucho Eso tampoco funcionaria.. tienes Skype? Yo te ayudo a hacerlo. Hay te mandé la solicitud. Link to comment
Recommended Posts