Hi, I made you another system that work just like you want with less events and variables :
Instead of spawing sprites all over the layout and delete them it spaws it directly on the grey plateforms, then it triggers a function to update the sprites frame;
I created a family with the sprite inside to check if there is a tile on left or right of the sprite by overlapping offset, then it can change the frame accordingly ~
(Note that the "Wait 0 second" is important so the game has time to spawn the sprites before it triggers the function)
Edit : I made a little change to the first event that allows you to change the angle of the grey plats and spawn the sprites accordingly to the angle :