I've used many function in my project, but i never ran into the necessity to allow a function to pick an object previously picked by the condition of the event that called the function.
For example, i have:
Object is visible
Object overlaps Tree
-----> Call "lol" Function
Then, on"lol" Function, how can i tell the function to pick the previous Object sprite?
Sorry if this question has been asked previously, i can't manage to find anything that i could understand, and my team mate (who is more seasoned with C2) is unavailable!
Develop games in your browser. Powerful, performant & highly capable.
you can add an uid (the one of the sprite picked) as a parameter, then you just use the sprite condition "pick by unique id" and specify said parameter.
Alright, i swear i've never seen "add parameter" and i was going crazy! Solved, thanks!