Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

A sprite's superposition problem

$
0
0

Hi again,

 

an over problem what I don't understand and need your expertise.

When I select an unit (in my strategy game), I put on his foot a sprite, that indicate this unit is selected.

 

But, when the unit walk around my world, the sprite go under the floor. Any Idea to avoid this ?

 

In short futur I will put grass on the floor, and this will be an over problem isn't it ? Any kind of idea ?
 

Some kind of solutions :
1) Put it on the head
2) Put it on the pelvis
3) Or like over strategy games, just a life bar on his head

 

I put in attachment a picture.

Have a nice day :)

Attached Thumbnails

  • sprite.jpg

Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>