RPG Maker MV
Allows you to cause the player to spin uncontrollably, even while moving!
- bentelk
- 01/06/2017 12:53 AM
- 3198 views
To cause the player to start spinning, run this script (either via an event, or your own JS script):
$gamePlayer.startSpinning(20, 60);
The first number indicates how many times the player will turn 90 degrees per second. A value of 20 (as in the above example), means that the player will rotate 90 degrees 20 times - 5 full rotations - in 1 second.
The second number indicates the duration for which the player should spin, in frames. There are 60 frames per second, so a value of 60 (as in the above example), means that the player will stop spinning after 1 second.
Additionally, the second number is optional! If left out, the player will spin forever!
$gamePlayer.startSpinning(10);
Not to worry: you can stop the player from spinning at any time:
$gamePlayer.stopSpinning();
Finally, you can test whether or not the player is currently spinning in a Conditional Branch within an event. Use the "Script" option (on the last tab), and enter:
.
This, and other plugins I've made, are available at
https://github.com/BenMakesGames/RPG-Maker-MV-Plugins