Jump to content


Photo

Isometric Buildings/walls/depth help


  • Please log in to reply
4 replies to this topic

#1 zerolegends

zerolegends

    GMC Member

  • GMC Member
  • 82 posts

Posted 23 March 2012 - 01:12 AM

Hi need some help, im making an Action RPG in isometric form, and im having some trouble figuring out a way to make it so i dont have to do tilesets everytime, is there a way to make it to where if the characters Y is larger than the buildings why, then the building shows up front, but if the characters Y is larger than the buildings Y then the character shows up on top? i need this for all my other buildings. Any ideas?

Ive tried doing this for the buildings step event


if Obj_hero.y>y{Obj_hero.depth=-1000000000000000000000000}

if Obj_hero.y<y{Obj_hero.depth=1}
  • 0

#2 kelson

kelson

    GMC Member

  • GMC Member
  • 303 posts

Posted 23 March 2012 - 01:17 AM

set the depth of your building = -y and the depth of your charector =-y
  • 0

#3 zerolegends

zerolegends

    GMC Member

  • GMC Member
  • 82 posts

Posted 23 March 2012 - 01:29 AM

set the depth of your building = -y and the depth of your charector =-y



huh? wat do u mean?
  • 0

#4 Jakyl11

Jakyl11

    GMC Member

  • GMC Member
  • 3109 posts
  • Version:GM:Studio

Posted 23 March 2012 - 01:34 AM

adding this to the step event of the building and player objects

depth=-y;

will set the objects depth depending on its location.
  • 0

#5 zerolegends

zerolegends

    GMC Member

  • GMC Member
  • 82 posts

Posted 23 March 2012 - 02:44 AM

adding this to the step event of the building and player objects

depth=-y;

will set the objects depth depending on its location.



so does that mean i wont need my old code?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users