You may wish to simplify your creature.
It should slowly move either from L-R or Top-Bottom;
Before it gets completely out of the window, reverse direction.
Do the same thing for the other side of the window.
To tweak this sketch, first download it.
Make your updates, then upload your tweak!