Author Topic: Reflections in water  (Read 471 times)  Share 

Aėrendyll (formerly Yurina)

  • Back from the dead.
Reflections in water
« on: 14 Jul 2006, 17:34 »
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...
<i>~Final Fantasy X-2</i>

I've been

Pablo

  • Connected appelsi
Re: Reflections in water
« Reply #1 on: 14 Jul 2006, 17:40 »
Maybe SteveMcCrea's Lake Module is what you're looking for?
"God is a man who has one beard and the gostos to agitate poles in dogs" -Rolf
"I'm trying to be as manly as I can when I'm shaving my legs." -Grundislav

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Reflections in water
« Reply #2 on: 14 Jul 2006, 17:40 »
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.bigbluecup.com/yabb/index.php?topic=27356.0
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Theeph

  • !parse(GO!); //collect 200 runtime errors
    • I can help with AGS tutoring
    •  
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • I can help with web design
    •  
Re: Reflections in water
« Reply #3 on: 15 Jul 2006, 06:05 »
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

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Reflections in water
« Reply #4 on: 15 Jul 2006, 14:08 »
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.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Aėrendyll (formerly Yurina)

  • Back from the dead.
Re: Reflections in water
« Reply #5 on: 16 Jul 2006, 12:23 »
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...).

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...
<i>~Final Fantasy X-2</i>

I've been