Multiple Backgrounds

Started by Calin Leafshade, Tue 25/08/2009 19:17:58

Previous topic - Next topic

Calin Leafshade

Is it possible to have multiple backgrounds for a room and change them at will?

For example a day and night version of the same scene?

Snake

Yes. You can have up to 5 backgrounds for each room (0-4, 0 being the default background frame). You can use them for animation purposes or what you mentioned above, night and day scenes.

You can call it using:
Code: ags

SetBackgroundFrame(int frame);


You can also of course use variables to check when they should be changed at room load.
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

Calin Leafshade


Dualnames

You can also use the Ags_theoraplayer plugin by Scothc to have a video as a background
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

monkey0506

And you can use the DrawingSurface functions (formerly the RawDraw functions) to make dynamic modifications to the room's background.

And you can use characters/objects in the room for animations of specific areas.

So yeah, there's lots of ways to do this. The easiest way for a nighttime background is as Snake advised you. ;)

Dualnames

You can also fade it in and out so you can create a day night cycle of some sort.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk