Page 1 of 1

Cloning

PostPosted: Tue Feb 15, 2005 7:33 pm
by Dark RyNo
Is there any way to clone an actor and then make it different without changing the original?
I need my character to gain an action and i dont want to have to redo all the events he has.

PostPosted: Tue Feb 15, 2005 9:00 pm
by jazz_e_bob
:lol:

The age old question.

At present, there is no way to copy an actor.

You must create a new one and copy all the events/actions/scripts by hand.

Note:

If your actors are being created at runtime you could use an actor variable "myType" to assign it a behaviour. You could then program a generic "enemy" and choose its type when created. It's all very tricky though and not to be attempted by the faint hearted. :(

PostPosted: Wed Feb 16, 2005 11:58 am
by Dark RyNo
Damn.
This is gonna take a while.

Wait!
Could I change his animation and then say, if animation=anim2 then create actor(bullet)

PostPosted: Wed Feb 16, 2005 4:07 pm
by jazz_e_bob

PostPosted: Thu Feb 17, 2005 8:46 pm
by Dark RyNo
Fixed!
I got around this by making a variable.
You can only do this action if the variable is 1.
It starts at 0.
When you pick up the powerup it changes to 1.
Along with your animation changes and stuff.
My game is getting good now.
well, good for a n00b with only 9 days of game making.

PostPosted: Thu Feb 17, 2005 8:58 pm
by jazz_e_bob
Well done mate!

8)

PostPosted: Sat Mar 05, 2005 8:51 pm
by IPete2
Okay Dark,

nice one, but when can we see a demo??

IPete2.