The command to walk somewhere is like walkTo or something. Just look at Delta's walkTo for ideas.
I think the animation is 896.
|
I need a command that I could use to walk to certaint co-ordinates, I know there was a tutorial on this but I can't seem to find it..if anyone has the link, or can just show the the code here it would be greatly appreciated.
Also on a side note, does anyone have the startAnimation for cooking? Like hunching over the range and moving your arms?
The command to walk somewhere is like walkTo or something. Just look at Delta's walkTo for ideas.
I think the animation is 896.
Thank you the animation was correct, and I will look into delta.
THIS IS NOT FROM MY ARIZONAS REVOLUTION THIS IS RIPPED RIGHT FROM DELTASCAPE
Code:public void walkTo(int i, int j) { if(entangleDelay > 0) return; newWalkCmdSteps = 0; if(++newWalkCmdSteps > 50) newWalkCmdSteps = 0; int k = absX + i; k -= mapRegionX * 8; newWalkCmdX[0] = newWalkCmdY[0] = tmpNWCX[0] = tmpNWCY[0] = 0; int l = absY + j; l -= mapRegionY * 8; newWalkCmdIsRunning = ((inStream.readSignedByteC() == 1) && playerEnergy > 0); for(this.i = 0; this.i < newWalkCmdSteps; this.i++) { newWalkCmdX[this.i] += k; newWalkCmdY[this.i] += l; } poimiY = l; poimiX = k; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |