This is driving me bonkers so hopefully a kind soul will be interested in a small puzzle to solve or explain. I have a little capx project. The idea is to draw platforms on the screen using a gray box sprite called plat. its on a 32x32 grid.
when run, the game will spawn better looking sprites called plat_skin on top of the plat sprites, and pick different frames based on their positions (left end, center or right end. this way I could quickly map out platforms by just stretching the play sprite about the layout, and the logic will build the rest.
The left end sprite works, but not the right.
So... if a plat_skin is spawned and has no platform under it, its deleted, making a gap. It should then pick the previous plat_skin, and change the animation frame to 2 (which is the far right image for my platforms).
I've tried picking by instance, iid and uid, and it seems to just not do it. I cant see a problem with the logic.
Heres the capx: https://www.dropbox.com/s/4auc19xpddvq40y/PlatformLevelEngine.capx?dl=0
The issue is with event 6 in my event sheet, there should be an screenshot below. I just cant see the problem.