I have been playing around with timed images. I want to make it look like it is snowing with three different PNG snowflake images. Is there a simple formula to show an image every third second? Or something like it?
These are not my codes and I don’t remember who originally posted them or I would credit him, but these are the codes I have been using.
$((floor(#Ds#/3))-(#Ds#/3))=0?100:0$
$((floor(#Ds#/3))-(#Ds#/3))<-0.3&&((floor(#Ds#/3))-(#Ds#/3))>-0.4?100:0$
$((floor(#Ds#/3))-(#Ds#/3))<-0.6&&((floor(#Ds#/3))-(#Ds#/3))>-0.7?100:0$
Or if you want to up it to four images
$((floor(#Ds#/4))-(#Ds#/4))=0?100:0$
$((floor(#Ds#/4))-(#Ds#/4))=-0.25?100:0$
$((floor(#Ds#/4))-(#Ds#/4))=-0.5?100:0$
$((floor(#Ds#/4))-(#Ds#/4))=-0.75?100:0$
Hope this helps!
Thank you so much! There is so much to learn!! I am having a blast tho!
Thanks also from me!
Here’s the tutorial by Tomas that also covers snowflakes:
If you want more images, just add more and adjust accordingly.
Thank you Linlay!! What a great community this is!!!
You can also try the modulus operator to set the opacity for the image element:
Image 1 opacity: $(#Ds#%3)=0?100:0$
Image 2 opacity: $(#Ds#%3)=1?100:0$
Image 3 opacity: $(#Ds#%3)=2?100:0$
Thank you very much, it helped me a lot