Make it just A, Help me please
Hellow,
i'm kind a confuse, please help me
i make 2 object (car and Home)
when object car hit object Home set value for "Path" = A
my code that i write just like this
public boolean foundHome()
{
Actor Hm = getOneObjectAtOffset (0,0, car.class);
if (Hm != null)
{ return true; }
else
{ return false; }
}
public void Act()
{
if (foundHome())
{ Path =Path +"A" }
}
but what i got is "Path = AAAAAAAAAAA"
because image for Home is quite Big compare to image for Car
so the foundHome() condition is "True" repeatedly and make my "Path" became "AAAAAAAA"
what i must do, so i can get Just "A" in my "List"
and can somebody teach me about
thanks a lot