- Code: Select all
Actor *chk;
if (CollisionFree("Event Actor", x-32, y))
{
moveLeft=1;
count=0;
canMove=0;
} else {
chk = getactor(x-32,y);
if (chk->isground==1)
{
moveLeft=1;
count=0;
canMove=0;
the part where it doesn´t work is:
chk = getactor(x-32,y);
if (chk->isground==1)
basically from the player´s position i wanna "look for" an actor / an actor´s (clone´s) variable.
so that i can move my player if that particular actor has the variable "isground" set to one.
however, i have the feeling it doesnt retrieve or "get" the actor at all. no matter what i do nothing happens.
is there any mistake in there? am i not supposed to use getactor this way?
any help REALLY appreciated!! thanks!!