A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [Help]: (3D) Isometric Game

  1. #1
    Hsalf Muta's Avatar
    Join Date
    Apr 2006
    Posts
    164

    [Help]: (3D) Isometric Game

    Hey everyone, I'm new here but I was wondering if anyone could give me some help here.

    What I'm trying to do it create is an isometric game that has height in it for sort of a fake 3d effect. Here's an example of what it might look like (the bricks I made are kinda crappy but you get the idea):

    http://img198.imageshack.us/img198/5928/3diso1jf.jpg

    For that particular map, the code would look something like:

    Code:
    NOTHING = 0;
    BLOCK = 1;
    FLAT_TILE = 2;
    RAMP_NE = 3;
    RAMP_SE = 4;
    STAIR_NE = 5;
    STAIR_SE = 6;
    map = 
    [
     [[2,1,1,1],
      [2,1,1,1],
      [2,1,1,1],
      [2,2,6,4]],
     
     [[0,3,1,1],
      [0,5,1,1],
      [0,0,0,0],
      [0,0,0,0]],
     
     [[0,0,5,1],
      [0,0,0,4],
      [0,0,0,0],
      [0,0,0,0]]
     
     ]
    Anyway, I was just wondering if anyone tried anything like this before and if they had any example code or any advice or tips they can give. (By the way, I read tonypa's tutorials on isometrics already, great tutorials tonypa!)

    To narrow it down a bit more, the main thing that I'm trying to do right now is write a function to place the tiles I have in a map (like the one above). Any help would be greatly appreciated


    *EDIT* I was looking around the forums and I saw this post:

    http://www.flashkit.com/board/showth...&highlight=iso

    That is somewhat what I'm trying to do (although, the person making that game hasn't added the height thing yet), so I guess that might give you a better idea.
    Last edited by Muta; 04-25-2006 at 07:14 PM.

  2. #2
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    http://members.optusnet.com.au/chrisrhodes/isoBoard.swf

    It is an easy thing to set up, set them up exactly like you would normal iso tiles. In the MC, where you specify the graphics, just make them higher.

    The hard part will be calculating heights, if you see the example above, it is easy when you move a tile at a time. Apart from that, good luck.
    Christopher Rhodes
    squarecircleco.

  3. #3
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,836
    http://www.friendsofed.com/download....sbn=1590595181
    here are some good tutorials (meant to go with a book so no explanation). You can see how he builds it up. part way through he does some 3d
    .

  4. #4
    Hsalf Muta's Avatar
    Join Date
    Apr 2006
    Posts
    164
    Thanks guys I'll be sure to read that those tutorials, and yeah I'm planning on making it a tile at a time so it'll be easier.
    Last edited by Muta; 04-26-2006 at 04:15 PM.

  5. #5
    Hsalf Muta's Avatar
    Join Date
    Apr 2006
    Posts
    164
    Thanks guys I'll be sure to read that those tutorials, and yeah I'm planning on making it a tile at a time so it'll be easier.

    Edit: Oops sorry, it posted twice for some reason.
    Last edited by Muta; 04-26-2006 at 04:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center