Page 1 of 1

Removing and adding behaviors with actions

PostPosted: Sat Nov 19, 2011 4:01 am
by StonePaleAle
Kind of a repost

I want to remove a behavior using an action. Is there a way other than what onzephyr stated in this post?

Forum Post

That will work for me, because |Scroll To| was the beahvior I was looking to remove/add. (Thank you onzephyr for the info!!!!!) But what about other behaviors? I have seen posts with people suggesting to, for example, remove the physics behavoir on an object or player.

Thanks in advance!StonePaleAle2011-11-19 04:06:19

Re: Removing and adding behaviors with actions

PostPosted: Sat Nov 19, 2011 11:00 am
by sqiddster
The best way to do this realistically is to simply delete the object and replace it with another.

Re: Removing and adding behaviors with actions

PostPosted: Sat Nov 19, 2011 3:42 pm
by Animmaniac
I don't know if it would be feasible to add or remove behaviors at runtime, but I think the ability to activate and deactivate them should be built in C2 by default.

Unfortunately as of now, if your object need to change behavior the only way is to make workarounds like destroying and creating different objects, or making your own behaviors through events.

Re: Removing and adding behaviors with actions

PostPosted: Sat Nov 19, 2011 8:09 pm
by StonePaleAle
Thanks!