MV .
Javascript/Plugin SupportI've not tested this, but you should be able to do the following:
line 98, add
line 206, change to
Then to change during play, you'd do a Script call with
If you need to change the other parameters (speed, frames, etc.) on the fly, that will require more extensive recoding.
line 98, add
$gameSystem.cursorImage = Galv.CI.image;line 206, change to
Code:
this.bitmap = ImageManager.loadSystem($gameSystem.cursorImage);
Then to change during play, you'd do a Script call with
Code:
$gameSystem.cursorImage = "newFilename"; ImageManager.loadSystem($gameSystem.cursorImage);
If you need to change the other parameters (speed, frames, etc.) on the fly, that will require more extensive recoding.
If you add french fries to your plate, you don't dump off the burger that's already there 😉
Place the cursor at the end of the line and paste the code I supplied.
Correct, you're changing the line to what I gave.
If it doesn't work, press F8 during play and go to the Console tab, see if it displays any errors.
Okay, that must run the first time during boot before the $gameSystem is initialized. So...go back to the original version of the plugin. Change line 206 to:
Then go to line 124, make a new line after that, and paste in
That should get rid of the error, I'm not positive without actually mucking around and testing it whether it will correctly change the cursor during play...but give it a shot.
Code:
this.bitmap = $gameSystem ? $gameSystem.cursorImage : ImageManager.loadSystem(Galv.CI.image);
Then go to line 124, make a new line after that, and paste in
Code:
this.cursorImage = Galv.CI.image;
That should get rid of the error, I'm not positive without actually mucking around and testing it whether it will correctly change the cursor during play...but give it a shot.
Original thread: https://forums.rpgmakerweb.com/threads/168862/