A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: width/height. top down view sim. depth

Hybrid View

  1. #1
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    i dont follow Q_Hybrid, simply using getPixel on a astatic bitmap shouldn't effect performance at all, its just a lookup isn't it?

    ever, i'd do what V said, full white should be the highest point possible, black being the lowest. Then simply find the percentage of gray you're at

    var maxHeight = 200;
    var color = heightMap.getPixel(hero._x, hero._y) >> 24 & 0xFF
    var height = (color / 255) * maxHeight

    hero._xscale = hero._yscale = height
    lather yourself up with soap - soap arcade

  2. #2
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    Quote Originally Posted by mr_malee
    heightMap.getPixel(hero._x, hero._y) >> 24 & 0xFF
    Showoff.
    http://www.birchlabs.co.uk/
    You know you want to.

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