Reflections in water

Started by A�rendyll (formerly Yurina), Fri 14/07/2006 17:34:56

Previous topic - Next topic

A�rendyll (formerly Yurina)

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
Yuna: Give me a Y!
Rikku: Give me an R!
Paine: Give me a break...
~Final Fantasy X-2

I've been

Ubel

Maybe SteveMcCrea's Lake Module is what you're looking for?

Khris

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

Theeph

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.

Khris

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.

A�rendyll (formerly Yurina)

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
Yuna: Give me a Y!
Rikku: Give me an R!
Paine: Give me a break...
~Final Fantasy X-2

I've been

SMF spam blocked by CleanTalk