Comunicating between widgets?

I have: widget 1 and widget 2 and at the click of a button in widget 1 i want to play an animation in widget 2 how can i do this?

Create a main widget where all your other user created widgets will go.

Widget1, create a button, and a variable for the widget to be controlled. Create the onclicked code.

Widget2, create your own animation. The one I did simply makes an image go up and down.

-Finally, widget1 needs the variable we made earlier to be set to something valid in order for the cast to work. We can do this in the Main widget construction script:

131637-_3.png

Final result:

131640-vlft9xc.gif

Thanks you so much! Now i got it!.. Best answer ever :slight_smile: