Hello! I hope this is the correct place to put this.
I am using the srpg group of plugins to have a tactical style rpg. What I want is for on specific maps, events to be set to move by jumping instead of the typical walking. Since this is free movement I can't use the movement options on the event itself. I'm not familiar enough with Javascript to edit this, but I did manage to find the below on the forums. Does anyone know the best way to go about accomplishing this for events on a single map?
I am using the srpg group of plugins to have a tactical style rpg. What I want is for on specific maps, events to be set to move by jumping instead of the typical walking. Since this is free movement I can't use the movement options on the event itself. I'm not familiar enough with Javascript to edit this, but I did manage to find the below on the forums. Does anyone know the best way to go about accomplishing this for events on a single map?
= function(d) {
this.setMovementSuccess(this.canPass(this._x, this._y, d));
if (this.isMovementSucceeded()) {
switch (d) {
case 2: return this.jump( 0, 1);
case 4: return this.jump(-1, 0);
case 6: return this.jump( 1, 0);
case 8: return this.jump( 0, -1);
}
}
};
this.setMovementSuccess(this.canPass(this._x, this._y, d));
if (this.isMovementSucceeded()) {
switch (d) {
case 2: return this.jump( 0, 1);
case 4: return this.jump(-1, 0);
case 6: return this.jump( 1, 0);
case 8: return this.jump( 0, -1);
}
}
};