Here's something that's been growing dust on my pc for over a year.
https://www.dropbox.com/s/nmm5g3xlg0s0a ... 7.zip?dl=0
It is a behavior that assists in z-sorting and motion of isometric objects.
At a glance you can:
* have the isometric positions calculated automatically from their positions in the editor.
* set the isometric position
* move in isometric by an offset
* check for overlaps in isometric
My main motivation was make the sorting faster.
https://www.dropbox.com/s/ge584x7evy3hk ... .capx?dl=0
https://www.dropbox.com/s/o0wm8zgapjaxm ... .capx?dl=0
But it also adds some nifty features like:
* pushing out of other objects in isometric
* positioning a shadow sprite below another
https://www.dropbox.com/s/8fu9qw25hsl5b ... .capx?dl=0
To be clear this only handles a 2:1 isometric view, so you'd need to make graphics accordingly.
You need to specify the sizes of you sprite in isometric. For instance a 64x64 cube sprite would have an isometric size of 32x32x32. This is important otherwise things may not sort right.
Also sorting will fail (not look right) if they overlap in isometric. So when making the levels or moving with events, you need to keep that in mind.
There is also cases where it can't sort. Like noted here:
Many thanks, R0J0hound.
Develop games in your browser. Powerful, performant & highly capable.
Yep, its a keeper.
Awesome! just what I needed thank you.
Great! Exactly what I was looking for. Thank you!
Hey Rojo is it possible to do some grid base movement with this behavior?
nvm: I got it to work I was using a stupid system.
Your plugin's are always exceptional , many thanks .
Great plugin. Thanks R0J0hound
Hi Rojo, please explain me why this happen
In my previev i set all blocks to:
BUT IN PREVIEW ALL LOOKS
The behavior only does sorting when the game is run. For it to sort correctly the isometric size and z of the blocks need to be set correctly. If the blocks overlap in isometric space the sorting won't work right.
I'm having an amazing fun with your plugin
One thing I can't figure out is how to implement pathfinding with it.
Even if only for the X and Y axes, how would you do it?
The easiest solution is to have a layer with a top view of the iso blocks and pathfind around that.
https://dl.dropboxusercontent.com/u/542 ... nding.capx
It's just a matter of setting the position from the isometric position or vice versa.
Great addition. cheers!
thanks that's what I was expecting from what I've read in other threads but I was having trouble cause I was not using contenairs.