How can I animate a background using scripting, so that I can control the animation instead of using "Animate Background" in the room settings editor? I've tried looking in the manual, but I didn't find anything. Maybe I'm just searching in the wrong places. Can anyone help me?
http://www.mattgoble.com/interaction/ags/help/04.htm
That should help you, it's a tutorial that explains using animated backgrounds to make night and day but it should work for what you want to do if you tweak it. :)
Thanks.
no problem dude, hope it helps. :)
Looking in the manual in the room/screen functions would also given some clues, I think...
The GetBackgroundFrame() and SetBackgroundFrame()...
Look at the Tech Forum thread for the newest release of AGS (v2.56a RC 1). There is now a new function that you can use to start/stop the back animation.