I am trying to have a random gif play for this but for some reason the gifs just will not play. When I replace my gifs with .png files and change my code for those the images will display just fine. Am I missing something in my code that gifs specifically need?
<<if $enemytype == 1>>
<<set _rndnbr to random(1,3)>>
<<switch (_rndnbr) >>
<<case 1>>
[img[gifs/1.gif]]
<<case 2>>
[img[gifs/2.gif]]
<<case 3>>
[img[gifs/3.gif]]
<</switch>>
<<endif>>
ps. I know i do have the file location correct because when I was testing this with images I used the same file location and name and only changed the .png extension to .gif
I am running this in twine SugarCube
<<if $enemytype == 1>>
<<set _rndnbr to random(1,3)>>
<<switch (_rndnbr) >>
<<case 1>>
[img[gifs/1.gif]]
<<case 2>>
[img[gifs/2.gif]]
<<case 3>>
[img[gifs/3.gif]]
<</switch>>
<<endif>>
ps. I know i do have the file location correct because when I was testing this with images I used the same file location and name and only changed the .png extension to .gif
I am running this in twine SugarCube
Last edited: