I am figuring out how to create a very simple drag and drop matching game.
Currently it's like this: If object 1 is drag & dropped while overlapping the correct item, it will be moved there using tween (move x and y to x and y of correct item). If it is not overlapping, it will return to the initial position. So really simple.
Now for every additional additional object, I could just copy & paste the . But is there a better way?
Is it possible to 'automate' the mechanism by creating a global variable 'activeObject', which is set to whatever object is being dragged? And to tell C3 to move an object without actually clicking on it, but by referring to it through a global variable?
I guess I am not sure yet how powerful functions can be in C3, and to what extent functions can control objects through variables.