What's your name? Afonso
How old are you? 19
Where are you from? Portugal
Why should I trust you? Because i'm a nice guy ^_^
How old are you? 19
Where are you from? Portugal
Why should I trust you? Because i'm a nice guy ^_^
2013 + 6 = 2020??Quote:
What's your name? Uuganaa
How old are you? 21
Where are you from? Mongolia (not everyone knows)
Why should I trust you? Im alone in this Forum. I dont have that much skills on programming but I can beta and report. Also ive been here for 6 years
Maybe he had another account, I've been here since 2010 but this account is newerQuote:
2013 + 6 = 2020??
Shouldn't it be something like this:Quote:
I just didn't implement movement position encoding (yeah, my mistake).
If someone's wondering how does it look.
Actually it should be safe to use, we will see.Code:if (TargetX > 0) { TargetX &= 8388607; } if (TargetY > 0) { TargetY &= 8388607; } if ((CurrentY + TargetX) % 3 == 0) { CurrentY++; } if (CurrentX > 0) { CurrentX &= 8388607; } if ((CurrentY + TargetX) % 3 == 0) { CurrentY++; } CurrentX = CurrentX - (CurrentX + TargetY) % 3;
if (TargetX > 0)
{
TargetX &= 8388607;
}
if (TargetY > 0)
{
TargetY &= 8388607;
}
if ((CurrentY + TargetX) % 3 == 0)
{
CurrentY++;
}
if (CurrentX > 0)
{
CurrentX &= 8388607;
}
// Here
if ((CurrentX + TargetY) % 3 == 0)
{
CurrentX++;
}
CurrentX = CurrentX - (CurrentX + TargetY) % 3;
if (TargetX > 0)
{
TargetX &= 8388607;
}
if (TargetY > 0)
{
TargetY &= 8388607;
}
if ((CurrentY + TargetX) % 3 == 0)
{
CurrentY++; // Or CurrentY += 2; idk
}
if (CurrentX > 0)
{
CurrentX &= 8388607;
}
// Nothing here
CurrentX = CurrentX - (CurrentX + TargetY) % 3;
You are probably right. I copied it directly from swf and didn't check it. :PQuote:
Maybe he had another account, I've been here since 2010 but this account is newer
Shouldn't it be something like this:
Because what you're doing right now is the same asCode:if (TargetX > 0) { TargetX &= 8388607; } if (TargetY > 0) { TargetY &= 8388607; } if ((CurrentY + TargetX) % 3 == 0) { CurrentY++; } if (CurrentX > 0) { CurrentX &= 8388607; } // Here if ((CurrentX + TargetY) % 3 == 0) { CurrentX++; } CurrentX = CurrentX - (CurrentX + TargetY) % 3;
Code:if (TargetX > 0) { TargetX &= 8388607; } if (TargetY > 0) { TargetY &= 8388607; } if ((CurrentY + TargetX) % 3 == 0) { CurrentY++; // Or CurrentY += 2; idk } if (CurrentX > 0) { CurrentX &= 8388607; } // Nothing here CurrentX = CurrentX - (CurrentX + TargetY) % 3;