I have 5 walkpaths (basically one line with 5 instances) and every 5,15,20 secs I spawn object on (x+200,walkpath(random(0,4)))
and this gives me the error
Uncaught TypeError: Cannot read property 'y' of undefined
192.168.2.211/commonace.js, line 174 (col undefined)
when trying to spawn the second one.
Which means probably when random number is generated. :/