How to Trigger an Variable List with action set on Mouse click?

contact 2 months ago in Game Creator updated by Marti (Lead Developer) 2 months ago 1

Like in the short Variable tutorial video I succeeded in destroying the list items in the editor by debugging. However, I want to click each of these items separately ingame on mouse click and make them destroy in the right order. The tutorial did not cover some trigger scenario.

I tried to add triggers to each of the objects and tried to add an trigger to the Variable list itself, but still no succes. See picture for the main setup. 

Unity version:
Game Creator version:

You might not need a List Variable for that. Simply add a "On Left Click" on each object and Destroy the object itself. List Variables are meant to be used to iterate over.