Error: Problem with application - YailList

Hello guys!

I’m trying to make a Space Invaders game.
And to start I created a global variable where an empty list is inserted.

So I created a procedure where the lists will be created and for each “enemy” of the list I would like to give their heights and widths.

I would also like to apply Sprite Images at random. So I created another variable with a list of two spriteimage.

However, whenever I start the game to do the tests, the following message appears!

Property getter was expecting a component but got a YailList instead.

Could someone help me please?

Put your image setting components inside the for each, and then change global Inimigos to just Inimigos.