Look at firemaking, if you have it clipped.
|
As most of you know the dragon spear special moves the attacked player 1 square over, right now you can spear them into the water, lava, etc. I do have player and npc clipping.. not sure what the problem is, I don't need to be spoon fed but if you have any sort of answers that'd be great!
Look at firemaking, if you have it clipped.
you would need to have pathfinding to check if the square behind the player is walkable, and if so move to that square, otherwise right where the player is.
see if there is a boolean which checks the int[][] array, or just look at pathfinding and make your own based on the way you do pathfinding, say its like public int[][] getPath(x, y, z, tox, toy) where it checks if x/y is clippable create a getter based on the value checked in the area
Seem to be still having a problem.. I've tried everything, well not everything since I'm still having problems.. I tried to follow what anadyr said but I'm still able to dspear through walls, water, etc.
Fixed, req a close.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |