Page 1 of 1

parents

PostPosted: Sun Oct 14, 2007 12:24 am
by elite
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: :?: :?: :?: :?:

Re: parents

PostPosted: Sun Oct 14, 2007 4:08 am
by DilloDude
Maybe just use something like: Player->CreateActor->ChangeParent(view, "Event Actor"). It depends a little on the situation.

Re: parents

PostPosted: Sun Oct 14, 2007 6:19 am
by elite
hmm, i was just thinking, what is the difference between draw actor and create actor? :?:

Re: parents

PostPosted: Sun Oct 14, 2007 7:57 am
by DilloDude
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.