Closed squk closed 10 months ago
One Leaf for each value seems pretty overkill. You could probably export a Script
resource that is responsible for creating the tween. If you can come up with something, feel free to open a PR. I may look into it tomorrow and give it a try :)
@squk Would you mind checking out #28? I added it as one node. Are there any other features that might be useful for this Leaf? (Types, callback, tween method etc.)
LGTM! Much better than the impl I provided
Some general purpose utility leaves for behavior trees would be nice to have. I'm not sure how abstract they can be made given the limitations of Godot's editor(e.g. no support for Variant @export properties).
I think 1 leaf for each node property type that can be tweened would be useful? So,
TweenVector3
,TweenVector2
,TweenInt
etc.Or you could maybe accomplish the same thing with a few Tween leafs for each primitive type in Godot:?