Parallax Scrolling plugin in AGS 3.0

Started by Le Woltaire, Mon 03/03/2008 01:31:13

Previous topic - Next topic

Le Woltaire

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?



subspark

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

Hope this helps,
Paul.

Ali

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.

Le Woltaire

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.



Ali

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.

SMF spam blocked by CleanTalk