A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Overlapping path games

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    14

    Unhappy Overlapping path games

    Hello All,

    I wanted to know about the games which are based on overlapping path for eg. Luxor. Where the path gets overlapped in some levels. I have a doubt of how this thing works with as3. Is it the index needs to be shifted for every moving object? or it has to be consistently making changes to objects z-position? or is it something with addchild overriding?

    I am new to this 3D illusion for as3
    Please help

    Thanks

  2. #2
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    You can take a look here:

    http://mattmaxwellas3.blogspot.com/2...ased-on-y.html

    Of course, that's not the only way, and you can change the property it sorts by.

    If you were talking about paths, I assume this is for a towerdefense type game? If so, then you'll need to get the current segment a unit is travelling on, and then interpolate between the nodes to get the current z value (or depth, or just some variable). That way you can define the path's depth in the path nodes, and then you don't need to change anything else, the units just travel along normally and adapt to the changing depths.

    P.
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    14
    thanks a lot. Its really useful.

Tags for this Thread

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