help please ?
|
Ok, when i'm stood 3 squares away from the player, he can still hit me. Althrough he's froze.
When i stand 4 squares away (On the X in the picture) he can't attack me.
Any suggestions on how this can be fixed?
Try looking for something like this:
Assuming your using delta.GoodDistance(EnemyX, EnemyY, absX, absY, 3
This is just a guess.
Search for;
Add something like this (This may not be correct, but it could work)Code:private boolean Attack() {
Something like that i guess? you'll have to test it & make some changes.Code:if(AttackingOn2.hitID != playerId && AttackingOn2.hitID != 0 && itFreezes){ sM("A magical force stops you from moving."); ResetAttack(); return false; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |