Parent View

Game Editor comments and discussion.

Parent View

Postby trajecto » Sun Jun 04, 2006 12:31 am

My actor is the parent of my view. After he is destroyed and re-created the view is no longer parented to him. How can I re-parent my view to my actor upon re-creation?

Thanks!
User avatar
trajecto
 
Posts: 86
Joined: Fri Jan 16, 2004 3:12 pm
Location: Michigan, US
Score: 6 Give a positive score

Postby makslane » Sun Jun 04, 2006 4:23 am

Use the 'Change Parent' action in the 'Crete Actor' event of your actor
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby trajecto » Sun Jun 04, 2006 5:32 am

ChangeParent("view", "mainChar");

Thanks Makslane!
User avatar
trajecto
 
Posts: 86
Joined: Fri Jan 16, 2004 3:12 pm
Location: Michigan, US
Score: 6 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest