Hi fellow devs,
I have gone around in circles trying to figure out how to access a function from another copy, and I either always get 'cannot access x from undefined' or 'x is not a function'
For example (Pseudo code) - Here I would like to call GetPiece function that is another copy.
copy > Piece code =======================================================
var p=board.GetPiece(3,4); // get the peice stored at position 3,4
copy> Board code =======================================================
return x*y; // pseudo example
I have tried putting the function in Create and OnStep but not joy.