Primarily a coder, some design skills, absolutely no art skills.
But I think standard is usually a unique int for the ID and a string called Name which isn't necessarily unique. That's useful for a "findChild("Text")" kind of situation, when all your buttons have a child object called Text.
But I think standard is usually a unique int for the ID and a string called Name which isn't necessarily unique. That's useful for a "findChild("Text")" kind of situation, when all your buttons have a child object called Text.
Try something different, like (64,32).
Try something different, like (64,32).
When drawing platforms, ignore x in the ordering - just draw everything in the bottom back first, for example.
When drawing platforms, ignore x in the ordering - just draw everything in the bottom back first, for example.
Which gives us vectors of (-8,16) for the box and (-23,46) for the character. So we would draw the character before the box.
Which gives us vectors of (-8,16) for the box and (-23,46) for the character. So we would draw the character before the box.
Which means we would draw the platform *before* we draw the character.
Which means we would draw the platform *before* we draw the character.
(75,90) - (75 * 2 + 90 * 1) / (2*2+1*1)*(2,1) = (-21,42)
(75,90) - (75 * 2 + 90 * 1) / (2*2+1*1)*(2,1) = (-21,42)
u - (u dot v)/(v dot v)*v
For the platform that's:
(60,120) - (60 * 2 + 120 * 1) / (2*2+1*1)*(2,1) = (-36,72)
u - (u dot v)/(v dot v)*v
For the platform that's:
(60,120) - (60 * 2 + 120 * 1) / (2*2+1*1)*(2,1) = (-36,72)
Character is also easy, just the world position (60,90) + up 15, to give us: (75,90).
So which of those two points is closer to the camera?
Character is also easy, just the world position (60,90) + up 15, to give us: (75,90).
So which of those two points is closer to the camera?
This happens at the top of the platform, which means it's at y = 120. Which tells us it is 15 up on the character (the character bottom is at 105).
This happens at the top of the platform, which means it's at y = 120. Which tells us it is 15 up on the character (the character bottom is at 105).