SCRIPT CALL FOR VARIABLE JUMPS

Posts

Pages: 1
Does anyone know the RMMV script call for jumping using variables for distance and height? If so, can you provide a detailed example? This is the way I have been doing it, and it is needlessly complex:



Thank you!
Marrend
Guardian of the Description Thread
21781
I'm not 100% certain, but, the thought in my head is that you might be able to use "$gamePlayer._jumpCount = <value>;" to set the distance (change in x coordinate?) of a jump, and "$gamePlayer._jumpPeak = <value>;" to set the height (change in y coordinate?) of a jump? Maybe follow up with "$gamePlayer.updateJump();"?

*Edit: Sorry, I don't know MV very well, nor do I have MV to test anything. ;_;

*Edit2: Heck, maybe "$gamePlayer.jump(xPlus, yPlus);" would be appropriate?
Thanks for the suggestions, Marrend.

I'll fiddle around with those and see if I have any luck. If anyone else knows, please share!

*Edit: You're the best, Marrend. "$gamePlayer.jump(x,y)" works! Who would have thought?
Pages: 1