I’m unsure what this could be related to, but viewing on Firefox and Chrome there is flashing between each frame when playing. All images are set to preload so I am struggling to understand why this is happening?
Firefox experiences this flashing first time when opening the scene, however Chrome it seems to happen when the scene is revisited. Safari is working great throughout.
It is probably a rendering delay and may be due to the size (either file size or dimensions) of the images you are using.
(I’ll take this time to plug that the upcoming Hype v4 does have a sprite sheet feature that can do these animations generally smoothly with the ability to set a custom FPS. You’re welcome to join the beta).
Looking at your example - test_MHv1 when you import your gif it remains in a paused state. How can I achieve this for another gif as it seems to constantly keep looping when import mine.
Thats nothing to do with Hype. The gif was saved with loop off.
Not sure what was used to turn it off or even if I did it, probably not but you can open a gif in something like Preview.app and the save as… a new file. This I think will by default turn the looping off.
var d = new Date(); hypeDocument.getElementById(“imgcontainer”).innerHTML = ‘<img src="’ + ‘${resourcesFolderName}/test.gif?dummy=’ + d.getTime() + ‘">’;
It seems to reload the gif (you see it on the right bottom corner each time the scene is revisited), but it’s not positioned the right way (should be positioned as the coins in the middle.
The gif is loading the first time nicely. Then in the repetition, the coins in the middle are not falling down again as they should. But in the bottom right corner you see one coin (in original size of the gif) falling down (see here:
So this is the gif reloading, but it’s not in the size i defined it to be and is a duplicate too.
Do you know how to solve that?