hi
isnt this:
if(!land.hitTestPoint(castx,casty,true))
{
if(!land.hitTestPoint(castx,castyc,true))
{
if( !land.hitTestPoint(castx,castyb,true))
{
hero.x += speedx;
}
}
}
suposed to equal this:
if(!land.hitTestPoint(castx,casty,true) && !land.hitTestPoint(castx,castyc,true)&& !land.hitTestPoint(castx,castyb,true))
{
hero.x += speedx;
}
im getting erratic results from the second example.
you know why?
thank you.