Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: A�rendyll (formerly Yurina) on Fri 14/07/2006 17:34:56

Title: Reflections in water
Post by: A�rendyll (formerly Yurina) on Fri 14/07/2006 17:34:56
Hi all,

again I'm asking for something that seems impossible to me: how can I make a character sprite reflect itself in water?

Some interesting info:
- the game uses 20x20 tiles
- the water has little wrinkles on the sides which'll be used in the final animation (the background will have 3 frames)
- I prefer the reflection transperant (50% visible) unless this is impossible
- The game uses 320x240 as resolution and 32-bit for the colours.

I thought of something like letting AGS copy the sprite and turn it upside-down while making it transperant. But I don't know how I can get it displayed in the right way (the feet of the reflection and those of the character need to touch eachother).

Is this even possible to do? I don't know how to copy and flip the image of the sprites needed upside-down, and I don't know anything about how to get the reflections at their place either. Can someone help? If not, I'll leave those out of the game.

Thanks in advance,
~Yurina
Title: Re: Reflections in water
Post by: Ubel on Fri 14/07/2006 17:40:22
Maybe SteveMcCrea's Lake Module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27356.0) is what you're looking for?
Title: Re: Reflections in water
Post by: Khris on Fri 14/07/2006 17:40:35
This is absolutely possible and has been discussed several times both here and in the tech archive. There's a recent module by SteveMcCrea which should be perfect for what you want.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27356.0
Title: Re: Reflections in water
Post by: Theeph on Sat 15/07/2006 06:05:10
Go the lake module, it's awesome.

But you said 20x20 tiles. Do you mean like a top down rpg?

Anyway, it seems a bit of a waste if that's the case, so if it is just have all the walkable areas around water hotspotted to change the tiles for the shoreline to ones that refelct the main char and annimate them manually yourself.

That's what I reckon anyways.
Title: Re: Reflections in water
Post by: Khris on Sat 15/07/2006 14:08:42
1. much trouble, the module is perfect for things like this
2. don't need to be hotspots, RawDraw-functions would suffice
3. before the module, things like this were achieved by using objects for the ground & water, a second character for the mirror image, a walkbehind area and a bit of scripting.
Title: Re: Reflections in water
Post by: A�rendyll (formerly Yurina) on Sun 16/07/2006 12:23:18
I'll check out if that lake module of SteveMcCrea is what I want. If it isn't, I'll try to get it done by RawDraw (I never worked with that until now...).

Quote from: theeph on Sat 15/07/2006 06:05:10
But you said 20x20 tiles. Do you mean like a top down rpg?

It IS a top down RPG. :P

Thanks,
~Yurina