I will take a look at that!Can you make jumping have another sprite or graphic? Would be pretty good
Well, in my project I specifically have the movement sprites at the top left, below them the diagonal ones, and to the right of the walking sprites, the jumping ones (for what it's worth) since in the game you play with several characters and they all have the same movements in the same position in the imagesI will take a look at that!
Game_CharacterBase.prototype.getJumpValues = function(value){
const jumpDistance = {
2: [0, value],
4: [-value, 1],
6: [value, 1],
8: [0, -value]
}
const jumpValue = {
x: jumpDistance[this.direction()][0],
y: jumpDistance[this.direction()][1]
}
return jumpValue
}
if(this.hasFoundJumpBlockers(destX, destY)){
break
}else if(canJump){
console.log(this._eventId ? this._eventId : "player")
finalX = jumpValue.x
finalY = jumpValue.y
}
- That was my mistake. I was probably testing something and forgot to set the Y value to 0. I fixed that, now you will stay on the same Y-axis as it is supposed to be.I use your plugin and it works very well. However, as a point of improvement, it would be great to be able to jump from left to right (or the opposite) while staying on the same Y axis.
When I looked at the code of your plugin, I noticed that you set the Y value to 1. Would it be possible to make this value customizable?
- How did you change the jump peak value? If it is for the player, you need to set a variable to control this value on the plugin parameters. Then, inside the game, you just need to change this variable value, that the player's jump peak will change.Currently, no matter how hard I try, the peak is always 1 (1 tiles below the jump origin)
$gameMap.event(ID).setPlusJumpPeak(value)
- Currently, the plugin only supports jump on the default directions(left/right/up/down), not diagonal.And I would like to be able to jump in all directions during a movement (walk, run) without having to program a jump in fixed coordinates via a plugin command.
I used the variable assigned to the plugin parameter (jumpPeakVariable). I tried to set the variable to -1 in an automatic event when the map was opened, to compensate for the default Y-tile move during the jump and thus stay on the same axis. But this did not work. With your correction, it no longer matters.How did you change the jump peak value?
The four basic directions are more than enough for me. It's effectively to move the player and make him jump over obstacles on the map.- Currently, the plugin only supports jump on the default directions(left/right/up/down), not diagonal.
- If you are talking about the player, yes you can already jump in these directions without using the plugin command, even if you walking or dashing. You just need to assign a keyboard key to do the jump.
I got the jump to work just fine, I just don't understand how to stop my character from jumping when he starts swimming in an area. How do I activate this switch to turn off the jump?Version 2.2.0 - 02/22/2021
- Added a switch that when is on, the player will not be able to jump.
- Added a parameter to change the jump height. Can also be changed mid-game.
- Fixed a bug that was letting the player jumps on autorun events.
**MV Version also gets all these updates.
Hi there!I got the jump to work just fine, I just don't understand how to stop my character from jumping when he starts swimming in an area. How do I activate this switch to turn off the jump?
Man you are amazing!Hi there!
First of, you need to go to the plugin parameter and define the Switch Id which will be responsible for enable/disable the jump feature.
View attachment 208850
After you set a switch id on that parameter, you just need to turn this switch ON and the player will not be able to jump by pressing the button anymore.
Hi there!thank you. It's such a good plugin.
Can you get rid of the overlapping parts appearing up while I'm jumping?
I want to make it invisible even if I jump from a place that should appear above the character, such as on the roof