I want to make some of 2.5D game like:
But actually some techniques I don't know how to do:
For example: Let player walk around a tree..In case Player.Y< tree.Y then tree overlap player but if Player.Y>tree.y then player overlap.
Could CC2 does it..??
Develop games in your browser. Powerful, performant & highly capable.
You would just set the stump of the tree to a solid and below the player with layers. Then make the rest of the graphics for the tree (just as sprites) and put then on a layer above the player.
Yes, you just change the zorder of the tree, or move it to a different layer. The following should point you in the right direction:
Just search the forums, pretty easy to find:
Hope that helps...
Not sure if anyone else has made a better one since but I have a z-ordering example for this kind of game
If you don't need different heights as well, as is the case in the example, then its just using 'For Each Ordered - by Y position - Move to top of layer.
Thank all of you
— just concern about performance of game in case using 'For Each Ordered - by Y position - Move to top of layer.
It's mean my game redraw object every tick..??? and could it let my game is getting slow...??
Yeah i understand. I am not sure if it is a problem or not. I don't think it really is. I just made a game with hundreds of objects on screen webgl effects particles flying everywhere and with that kind of z-ordering event. It ran ok on a mid range pc from 2008.