Reading a clone's variable?
Posted: Fri Jun 13, 2008 6:56 pm
How? I used this:
but it doesn't work...
- Code: Select all
int i;
Actor*Clone;
erase(0,0,0,0);
setpen(0,128,256,0,2);
putpixel(Player.x/200+(width/2),Player.y/200+(height/2));
setpen(128,128,128,0,1);
for(i=0; i<ActorCount("Block"); i++)
{
Clone=GetClone2("Block",i);
putpixel(Clone.x/200+(width/2), Clone.y/200+(height/2));
}
but it doesn't work...