[SOLVED] Removing and adding Behaviors by Events

Get help using Construct 2

Post » Thu Sep 22, 2011 5:45 am

I want to remove the ScrollTo behavior from my unit and then re-add it later on by an event. Is there anyway to do this? And can it be done with all other behaviors?

I could not find this function in the forums. Thanks for reading.huyngo2011-09-23 00:00:13
B
2
G
1
Posts: 5
Reputation: 460

Post » Thu Sep 22, 2011 6:26 am

An idea would be to do the ScrollTo as an event instead of adding the behavior to the unit. Then toggle the event on and off through any condition you like.

Here is an fast example , using a keypress to toggle a group containing the event.
http://dl.dropbox.com/u/3285817/scrollto.capx
B
84
S
12
G
9
Posts: 99
Reputation: 9,508

Post » Thu Sep 22, 2011 11:57 pm

Thanks for the response! It works!huyngo2011-09-22 23:59:51
B
2
G
1
Posts: 5
Reputation: 460


Return to How do I....?

Who is online

Users browsing this forum: tarek2, Yahoo [Bot] and 20 guests