Tutorial for Action.call method?
Hello Im having a hard time getting Action.call method to work. Is there a tutorial for Scene.Action methods (except for the help documentation) I want to call the function:
def twin_action(self,twinboss): ``` Using this line of code:
blasers.run_action(A.sequence(actions), A.call(self.twin_action())) ```
But It seems that the Action.call function does not like that the twin_action takes both self and twinboss with it.
I really dont know how to fix it, any ideas/solutions?
You can use functions.partial, or a lambda to create a function that takes no arguments, which is what Action.call expects.
Ok thanks. Will give it a try