> > Action's parameters must be deepcopiable. > A comon workaround is to > - store the no deepcopiable params in the node, like > node.my_param = ... > - In the action .start method use target.my_param to acces the desired > param >
Yes, thanks. Modified the code posted (It has a bug by the way) so the setimage class init() method takes a string, i.e. a resource name and then on start() retrieve the image from a dictionary defined at the main scope. Then It works with linux but not on windows (fails to set the image silently). To avoid that issue I must as you said, store the resources as a node's attribute. -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/d/optout.
