Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Le Woltaire on Mon 03/03/2008 01:31:13

Title: Parallax Scrolling plugin in AGS 3.0
Post by: Le Woltaire on Mon 03/03/2008 01:31:13
When I use the Parallax Scrolling Plugin in AGS v.3.0 all objects and sprites and the player character are drawn always on the foreground.
In AGS v.2.72 everything works normal...

Is this a problem that is caused by the Plugin or AGS?
Title: Re: Parallax Scrolling plugin in AGS 3.0
Post by: subspark on Mon 03/03/2008 09:55:15
I suggested that someone design a new module for parallax specifically for AGS 3.0. Ali was kind enough to take on the task.

You can find the thread here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=33142.0 (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=33142.0)

Hope this helps,
Paul.
Title: Re: Parallax Scrolling plugin in AGS 3.0
Post by: Ali on Thu 06/03/2008 10:40:31
I thought that plugin only ever drew objects on top of the AGS graphics. That's why I cobbled together a module that moves room objects around to simulate parallax (and smooth scrolling), linked to in the post above.

The movement is a bit clunky at 640x480, but it looks nice at 320x240 and okay at 800x600. If the plugin used to draw objects in the background then I guess the only advantage of my module is that it's cross platform.
Title: Re: Parallax Scrolling plugin in AGS 3.0
Post by: Le Woltaire on Thu 06/03/2008 10:56:21
I tried both now:

Plug-In:
The advantage of the plug in is that you can control the speed of parallax movement of each layer easily by indicating a number. When I used the module I had to script some functions to assign a precise speed to every object layer via the property.

Module:
The Advantage of the Module is not only that it is cross platform, but also that it allows transparencies in the parallax movement for an anti aliased effect. This is not possible with the Plug-In. All alpha channels become white there.
Title: Re: Parallax Scrolling plugin in AGS 3.0
Post by: Ali on Sat 08/03/2008 15:20:37
Thanks for that breakdown Le Woltaire, I didn't know that the plugin lacked alpha channel support. And I do intend for the mosule to support a wider range of speeds, but as you saw it only does the basics.