Encapsulation
NRaf
Member Posts: 4
Is there some way to create the programming equilavant of a function / method in GameSalad? At the moment, I can use behaviors however there's no way to create one behavior, as far as I know, and use it in multiple places, change it and have all the places using that certain behavior to update.
Also, on the topic, is there any way to delete behaviors after creating them?
Also, on the topic, is there any way to delete behaviors after creating them?
Comments
You can create rules/behaviors in an actor prototype and it then shows up in each instance of the actor that you place/spawn in a scene. Then you can also edit each placed actor instance if need be.
Rules/behaviors/timers should be deletable. There is an "x" delete item on each one. You can also highlight it and press the 'delete' key. If you are talking about the "My Behaviors" area, no, not currently (unless they added it to 0.8.x since I am waiting a few more days for the fallout before I upgrade to 0.7.0).
Banana isa Fruit.
Work around: bools lots of them.