custom events for multiple game objects

I made a game object button in my 2d scene that when pressed it would trigger a custom event inside the blocks to make all the blocks with the same tag reverse their gravity and float to the ceiling. I had it working before but don’t know what i deleted because now it only reverses the gravity for the first one it finds. My head hurts trying to figure this out

The picture is the flow chart for the button.

woah what version of visual scripting are you using?
also woah photograph of a screen haha nice

do both objects have the tag “Block” ?

This might be suitable for what you are doing. It works by finding all objects with the tag and triggers the custom event on each block individually.

1 Like