Check the action of the object? It may be appending only to a certain Y axis.
|
Hey guys im using a project insanity base, and no its not a leech, but back on topic, when i added the wildy ditch, i can jump over it, but when im in the wild it wont let me jump back over, anyone know why? D:
Check the action of the object? It may be appending only to a certain Y axis.
Well i've been looking over it and i cant recognise anything, would u mind actually helping me over like teamveiwer? ide be glad to pay you a easy buck.
actionhandler.java
find:
OVER it, add:Code:public void firstClickObject(int objectType, int obX, int obY) {
Then find this again:Code:public void wildyditch() { { if (c.absY <= c.objectY){ c.startAnimation(6132); c.getPA().walkTo(0, +3); } else if (c.objectY < c.absY) { c.startAnimation(6132); c.getPA().walkTo(0, -3); } } }
and add this under it:Code:public void firstClickObject(int objectType, int obX, int obY) {
Code:case 23271: wildyditch(); break;
@ ActionHandler under first click object
@ ClickObjectCode:case 23271: c.turnPlayerTo(obX, obY); if (c.absY <= 3520) { c.getPA().walkTo(0, 3); c.startAnimation(6132); } else if (c.absY >= 3523) { c.getPA().walkTo(0, -3); c.startAnimation(6132); } break;
underCode:switch (c.objectId) {Code:case 23271: if (c.absY >= 3523) { c.objectDistance = 1; c.objectXOffset = 0; c.objectYOffset = 3; } break;
Both codes gave me errors.
Fixed.
Close
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |