- Code: Select all
if(x < check->x+320)
xvelocity=-2.6;
if(x < check->x+320)
xvelocity=-2.6;
int i;
for(i=0;i<ActorCount("actor");i++)
{
check=getCloneIdx("actor", i);
if(abs(x-check->x)<320)
{
// move
break;
}
}
Users browsing this forum: No registered users and 1 guest