Parenting Problem

Talk about making games.

Parenting Problem

Postby Hedfone » Sat Oct 21, 2006 6:09 pm

I just got the GE silver demo, but now, whenever I try to make a parent actor, its makes it show up in front of the child actor.
IE: the gun arm shows up IN FRONT of the actors body insyead of behind it.
changing the Zdepth does nothing!
HELP!!
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby makslane » Sun Oct 22, 2006 1:11 pm

Parents aways are shown behind of their children.
In you case, remove the parent and add this code in the 'Draw Actor' event of the gun:

Code: Select all
xscreen = body.xscreen ;
yscreen = body.yscreen ;
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Hedfone » Sun Oct 22, 2006 2:47 pm

thnx makslane :)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron