Getting y value from a clone

Non-platform specific questions.

Getting y value from a clone

Postby tufif » 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.
tufif
 
Posts: 22
Joined: Sat Oct 13, 2007 3:00 am
Score: 2 Give a positive score

Re: Getting y value from a clone

Postby makslane » Mon Nov 05, 2007 4:35 pm

Use the getcone or getclone2 function.

http://game-editor.com/forum/viewtopic. ... =getclone2
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron