Removing and adding behaviors with actions

Get help using Construct 2

Post » Sat Nov 19, 2011 4:01 am

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
B
31
S
10
G
7
Posts: 30
Reputation: 5,408

Post » Sat Nov 19, 2011 11:00 am

The best way to do this realistically is to simply delete the object and replace it with another.
B
92
S
30
G
24
Posts: 3,191
Reputation: 32,574

Post » Sat Nov 19, 2011 3:42 pm

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.
Scirra Employee
B
137
S
49
G
16
Posts: 706
Reputation: 16,515

Post » Sat Nov 19, 2011 8:09 pm

Thanks!
B
31
S
10
G
7
Posts: 30
Reputation: 5,408


Return to How do I....?

Who is online

Users browsing this forum: oosyrag, ultrafop and 9 guests