Suggestion: Layered Backgrounds

Started by Haddas, Sat 27/08/2005 00:52:40

Previous topic - Next topic

Haddas

I know this might have been brought up before, but I've been thinking about it more, lately. I brought it up at Brittens this summer and have been wondering about how plausible this feature would be?

Eg. The background is outside and you want the sky to move. As in, the clouds drifting. It could be done with characters, but this would save time. I've always disliked animating backgrounds, as it increases the file size when you need more images, as you need frames for the animation. Another one would be in a cave, with foreground objects that move at a different speed as you do. Again, characters, as proposed in a thread that came up that I searched.

These are all terrible examples. I remember there were some really good useful examples at Brittens, but sadly I've forgotten most of it. Something with the ocean...

ildu

Yes, it would be useful for implementing parallax mapping. I don't think AGS is able to give reasonable for it.

Ben

You can already make paralax foregrounds using overlays. I think Gilbert had a simple demo showing how do do it at one point.

Paralax backgrounds is a different story, though.  I guess you could use really huge objects, but that would obviously be way too slow.

Rui 'Trovatore' Pires

As for the "cave" example, there's the plugin for that. As for the "clouds", using objects/characters is better. It aditionally gives you control over each individual cloud.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

I believe there's a Parallax Scrolling plugin that does this?

Rui 'Trovatore' Pires

Ayuh, there is. Quite a good one, too, methinks.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Haddas

I know about the plugin, but I'm really hesitant about using plugins, as I always screw up. Anyway, 'twas worth a shot.

Ben

You can do it without a plugin.  Like I said, Gilbert made an example. I just don't remember where to download it.  I was kind of hoping Gil would show up so I could be lazy and not search for it myself.

Gilbert

Well I need to do some searching to find it, it's actually an crappy conversion of the plugin's demo into one that does not need a plugin (hence the messy code).

Download it here.
Note that it was made with AGS V2.6SP1, I'm not sure if it can be compiled directly with V2.7+.

Gilbert

Bump for a primitive Script Module.

Make sure you use V2.7+ for it and read parallax.txt

Download it here.

Rui 'Trovatore' Pires

Yay, script module!

Mind if I add it to my sitey, Gilbot?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Gilbert


SSH

Could you add the possibility of using Objects as well as layers, Gil? That way, the objects can be BEHIND things in the room, instead of always on top...
12

Gilbert

Yes it's possible, but I'll expect characters are probably better to use than objects, since you need to create the objects in the rooms beforehand. In that case, since you have to do preparations for each room manually, it will lose its functionality as a script module.

SMF spam blocked by CleanTalk