tunepunk
Don't use a function for new objects.
It used to work that way, but it was changed at some point.
It doesn't matter if I use functions or not. The design is retarded. On creation - I need to pick everything including the newly created sprite, and sort the Z order otherwize the newly created one will not end up in the correct order, or I will see a glitch (if i use wait 0), or I have to use some strange workaround with variables to pick.
Pick All, in a sub event does not work, newly created sprite is excluded.
Pick all, in a new top level event like "on created" still excludes the newly created one.
Pick all, in a function called in any of those still doesn't include the newly created object.
There's no logical way to pick after creation which is very annoying. I've spent hours trying to figure out why it doesn't work, and trying to find workarounds. Picking should always pick. I don't care if they are sol, new, instance or whatever, if they have an UID they should be pickable.
And the reason for using functions is so I don't have to clutter up the code with copies of events doing exactly the same thing.