Hey y'all!
I've been working on something for a while, and I was just doing the last few tests on it before this problem had to screw things up

Although you can use 'play animation to image' to stream an animation to an image, there doesn't seem to be any way to stop it streaming

To give you an idea what I'm trying to do, I'm trying to create a TV in my game which can play several different animations. There are two ways I can think of to do this: The best way, which would be to load up my 3 different animations, and when I want to swap between them, stop the one that was playing, and play another one to the same image. That'd give me something like this:
numberpressed = val(inkey$())
if numberpressed => 1 and numberpressed <= 3
`Play one of three animations depending on which key is pressed
play animation to image numberpressed, 1, 0, 0, animation width(numberpressed), animation height(numberpressed)
`Texture the TV screen with the animation
texture object 1, 1
endif
The other way (which I tried when I realized the first way wasn't working), would be to use a different image for each animation I want to play. That'd give me this:
numberpressed = val(inkey$())
if numberpressed => 1 and numberpressed <= 3
`Play one of three animations depending on which key is pressed
image = numberpressed
play animation to image numberpressed, image, 0, 0, animation width(numberpressed), animation height(numberpressed)
`Texture the TV screen with the animation
texture object 1, image
endif
The second way, unfortunately, isn't an option for me - Streaming an animation to an image seems to suck away a lot of frame rate per animation, and my game sure doesn't need a lower frame rate :/
The reason I can't use the first option is that any new animation played to the same image as another animation seems to overwrite the other animation (which is what I want), but after that, I can't switch back to the old animation (which isn't what I want). For some reason, using 'play animation to image' only works once on an image - after that, if I overwrite the image with a different animation, I can't get the old animation back!
Sorry, that's probably pretty confusing... This is how it works:
I play animation 1 to image 1 - TV screen is now playing animation 1
I then play animation 2 to image 1 - TV screen is now playing animation 2
I play animation 1 to image 1 again, to swap back > TV screen still shows animation 2
I play animation 3 to image 1 > TV screen is now playing 3
After that, neither animation 1 or 2 can be shown again!
It's also worth nothing that this method gives exactly the same FPS drop as the the second method, because the other animations are apparently still streaming.
I had an idea to fix the problem, which was to delete and reload an animation every time I wanted to stop streaming it - annoying, but I thought it might work. Turns out that just causes the program to crash with a windows error (Program has stopped working...)
So as far as I can see, using 'play animation to image', which is the only way I know to get an animation to an image, is a one-way ticket :/
Sorry for the long post people, I just wanted to give you plenty of detail

Thanks for any help
The code never bothered me anyway...