Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ZZjZmoz on Sun 17/08/2003 21:23:50

Title: Background Animation w/ Scripting
Post by: ZZjZmoz on Sun 17/08/2003 21:23:50
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?
Title: Re:Background Animation w/ Scripting
Post by: on Sun 17/08/2003 21:37:42
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. :)
Title: Re:Background Animation w/ Scripting
Post by: ZZjZmoz on Sun 17/08/2003 22:40:52
Thanks.
Title: Re:Background Animation w/ Scripting
Post by: on Sun 17/08/2003 23:07:32
no problem dude, hope it helps. :)
Title: Re:Background Animation w/ Scripting
Post by: Ishmael on Mon 18/08/2003 05:19:28
Looking in the manual in the room/screen functions would also given some clues, I think...

The GetBackgroundFrame() and SetBackgroundFrame()...
Title: Re:Background Animation w/ Scripting
Post by: TerranRich on Mon 18/08/2003 18:00:40
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.