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.
Develop games in your browser. Powerful, performant & highly capable.
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
Thanks for the response! It works!