Page 1 of 1

z depth help please

PostPosted: Sun Nov 18, 2007 1:14 pm
by mrgame
im making a kinda 3d game
but ive got a small problem

say theres a box

when the player is behind the box the zdepth should be high

when the player is in front the zdepth should be low

its a kinda game with the layout of habbo hotel
the diagonal walk ect

Image

so wt would i do?

Re: z depth help please

PostPosted: Mon Nov 19, 2007 4:38 pm
by Kalladdolf
here's a little turtorial.
The ball can still go through the box, but it would be too complicated to try removing that bug.
Also, check again if u are REALLY serious in making a 3d game with GE. It's really hard (almost impossible)
About Habbo Hotel, have u heard about the teenies arrested because of stealing virtual furniture? :lol:

never mind :)

3d.zip
(239.79 KiB) Downloaded 106 times

Re: z depth help please

PostPosted: Mon Nov 19, 2007 7:10 pm
by mrgame
thx
and no I didn't hear about the teens :)
Ps I'm writing this on my iPhone :) can't wait for ge on this :)
Allso I have allready got every thing done apart from the zdepth and monsters but monsters are easy

Re: z depth help please

PostPosted: Mon Nov 19, 2007 7:16 pm
by Kalladdolf
good :D

Re: z depth help please

PostPosted: Wed Nov 21, 2007 9:19 pm
by mrgame
humm it dosnt realy help me.

i kinda need a code that i can use with draw actor and it can be anywhere so i could clone the box

kinda like

Code: Select all
if (player.y < box.y)
{
change z depth ect
}

Re: z depth help please

PostPosted: Thu Nov 22, 2007 6:21 pm
by Kalladdolf
can't u use animpos?
I thought you wanted your player go bigger or smaller :?:

Re: z depth help please

PostPosted: Thu Nov 22, 2007 10:19 pm
by mrgame
look at the pic.
its not backward and forward its kinda diagonal.
all i wanted was
when player is behind (above slightly) the box its got a high z depth
and when player is infront (below slighlty ) the box has low zdepth

i use feet. it was only way to make this psoible. player has seperate feet.
its realy hard to exsplain let me send a demo of da game in .exe

as you can see the box if you manage to get to it. it kinda has the zdepth thing but thats because it has two actors next to it.
but i need a code that dose the same thing