Getting y value from a clone
Posted: Mon Nov 05, 2007 4:15 pm
I made a spider that moves up and down on a path while a canvas actor behind it draws a line from it to a fixed spot to simulate a web. The script uses spider.y to get the y value of the spider to know how long to draw the web. It works fine until I clone the spider. Then it starts getting the y value from the wrong spider. Is there a way to get the y value from a specific clone like spider.0 or spider.1? I tried using spider.0.y but that doesn't work.