I created some scripts that support: > recursive use of temporary internal variables > relational databases for sprites (attributes are *Name, *Type, *X, *Y) > find closest object of a type > search database by name Using these scripts to do stuff with clones is tough and makes things slow, and there is no real way to tell what the ID of a clone that is touching you is... In this demonstration, I have a single sprite that clones itself - creating pellet objects and a bug object. the bug object uses the database to find which pellet is closest to it, determines its X,Y coordinates, points towards it, and moves until it is on top (And eats it). The pellet then gets removed from the database. you can hover over a pellet to see its name.
https://en.wikipedia.org/wiki/Relational_database for information about relational databases. I made this in an afternoon. I was hoping to be able to use it for cool stuff but that might have to wait. The speed that this goes at is rather slow.