This site requires JavaScript, please enable it in your browser!
Greenfoot back
Entity1037
Entity1037 wrote ...

2013/12/13

How to put all actors in a world in an array orded based on position?

Entity1037 Entity1037

2013/12/13

#
So I figured out how to make sure the isometric graphics remain on the right perspective (by addObjecting them every cycle from bottom-left to top-right going first by columns, then rows), however I'm not exactly sure if there's a way to detect them in order in first place. Or, do I have to get them first, and then order them?
bourne bourne

2013/12/13

#
I'm not exactly following you, but wouldn't it be easier having everything ordered in appropriate array first and using that to position them in the World?
Entity1037 Entity1037

2013/12/13

#
I need the player to be able to appear in front of or behind the isometric blocks based on if he's above/below/to the left of/to the right of them so the perspective doesn't get thrown off and the player doesn't appear, for example, behind the top of the block he should be standing on.
You need to login to post a reply.