how to achieved sprite reflection in libgdx -


i working on open world game pokemon using libgdx.i stuck on effect want done before moving other features of game. have idea how achieve reflection effect? .concept behind?

https://gamedev.stackexchange.com/questions/102940/libgdx-sprite-reflection

for basic reflection, draw texture flipped vertically can scale height -1. redraw texture appropriate distance under player.

you shoudl add clipping rectangle around water's edge reflection draws water is. perfomance purposes, when player near water.

i can't give actual code don;t know code, once you've had go @ handling reflection abaove, come here , ask more specific questions taht may have.

this question broad , opinion based , hence highly voted down.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -