Quote from: abstauber on Fri 29/04/2022 10:46:47
About the "by reference or "by value" issue:
How about submitting a pointer to the function and overlays would be created by reference, whereas supplying a sprite slot would result in creating a copy.
Which pointer? If you mean sprite's, there's no Sprite type in AGS to pass a pointer for, only DynamicSprite, but that would limit this to dynamic sprites only. Unless we create Sprite type to address all the sprites.
In general i think such approach would be confusing to people, and inconsistent with the rest of the script commands, where assigning a sprite slot does not create a copy.