Not sure if its me doing something wrong as i'm new to functions.
I have multiple instances of an object, each with a private value of either blue box or red box.
When you click on one of these instances i want to create another object based on what type of private value it has which i've clicked on.
I thought an elegant method would be to do -
on object clicked > create object by name (funtion. return myfuntion)
+instance priavate variable(object type)= "blue box" > return function (BlueBoxSprite1)
+instance priavate variable(object type)= "red box" > return function (RedBoxSprite1)
So the function compares the private value and if its a blue box it returns the blue blue box sprites name, and same for if its red.
but i think the problem is when calling return functions in an expression there is no option to remember or forget picked objects, like you can do if it's just an action "call function".
Is this right or have i got things wrong?