#### Archived

This topic is now archived and is closed to further replies.

# Isometric Theory for a newbie

This topic is 6321 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi. I am currently experimenting with an isometric game in Flash 5, and i have some really basic newbie questions in the matter of isometric theory. In my game, my character in positioned in the center, and the "landscape" (scene) and objects move in different directions. My problem is a matter of depth (i.e when is the character behind or in front of objects) Currently, i set the depth of an object equal to the objects y position in the scene, and constantly updating the characters depth equal to the scenes y position. (so that if the scenes y position is greater than an objects y positon, the depth of the character will be higher than the objects, and hence the character is in front of the object.) This works fine, but this can only be done with 1 tile objects (where the lower side corners are on the same y axis, like the box in the example) So if i wanted to do a new box, with the length of 3 of my boxes, i actually have to set 3 boxes on the stage... Is this a normal way of doing isometric games? Or how do you normally calculate, when the character is behind or in front of stuff? Best regards, Tim. Edited by - timster on July 20, 2001 9:23:35 AM

##### Share on other sites
It''s usually based on the position in the map array not position on the screen.

Ben

##### Share on other sites
In your case you can calculate the mid position of the objects drawn to the screen, so when the pass halfway it is draw over them....

##### Share on other sites
I think it makes the most sense to make depth proportional to the y position of the BOTTOM of a sprite (because it''s BOTTOM is what touches the map "plane").

1. 1
Rutin
22
2. 2
3. 3
4. 4
5. 5

• 9
• 9
• 9
• 14
• 12
• ### Forum Statistics

• Total Topics
633307
• Total Posts
3011290
• ### Who's Online (See full list)

There are no registered users currently online

×