Page 1 of 1

Reading a clone's variable?

PostPosted: Fri Jun 13, 2008 6:56 pm
by Game A Gogo
How? I used this:
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...

Re: Reading a clone's variable?

PostPosted: Fri Jun 13, 2008 8:37 pm
by makslane
Use Clone->x, not Clone.x

Re: Reading a clone's variable?

PostPosted: Fri Jun 13, 2008 8:41 pm
by Game A Gogo
ah, thanks a lot!
I didn't really got that section of GetClone2 lol...

it's really a burden when you are waiting to get help and that you have programming crave like this one xD I always get it during summer :3