parents

Game Editor comments and discussion.

parents

Postby elite » Sun Oct 14, 2007 12:24 am

howdy yall, how do you make the selected character(i have a list of all the guys you can be in-game) become the parent of the view? this is really confusing me..... :evil: :oops: :?: :?: :?: :?:
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: parents

Postby DilloDude » Sun Oct 14, 2007 4:08 am

Maybe just use something like: Player->CreateActor->ChangeParent(view, "Event Actor"). It depends a little on the situation.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Re: parents

Postby elite » Sun Oct 14, 2007 6:19 am

hmm, i was just thinking, what is the difference between draw actor and create actor? :?:
after reading this you have just realized you have wasted 5 seconds of your life.
User avatar
elite
 
Posts: 29
Joined: Wed Oct 03, 2007 12:07 pm
Location: in URECTUM
Score: 0 Give a positive score

Re: parents

Postby DilloDude » Sun Oct 14, 2007 7:57 am

Create actor takes place only once, when the CreateActor function is called, and the actor is first created. That's where you initialize variables and things like that. Draw actor takes place every time the actor is drawn on the screen, IE every frame (which at standard rate is thirty times a second). That's where you put stuff that the actor constantly refers to.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron