z depth help please

Non-platform specific questions.

z depth help please

Postby mrgame » Sun Nov 18, 2007 1:14 pm

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?
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: z depth help please

Postby Kalladdolf » Mon Nov 19, 2007 4:38 pm

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 107 times
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: z depth help please

Postby mrgame » Mon Nov 19, 2007 7:10 pm

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
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: z depth help please

Postby Kalladdolf » Mon Nov 19, 2007 7:16 pm

good :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: z depth help please

Postby mrgame » Wed Nov 21, 2007 9:19 pm

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
}
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: z depth help please

Postby Kalladdolf » Thu Nov 22, 2007 6:21 pm

can't u use animpos?
I thought you wanted your player go bigger or smaller :?:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: z depth help please

Postby mrgame » Thu Nov 22, 2007 10:19 pm

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
Attachments
3d.zip
(756.19 KiB) Downloaded 97 times
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron