Hey again! I'm looking to see if there's a way to toggle Altimit's Pixel Movement plugin back to MV's default movement on a dime through eventing.
MV Altimit Pixel Movement Toggle
Javascript/Plugin SupportNo, you can't just toggle a plugin, much less one 4000 lines long.
Consider what a plugin does: add or overwrite lines of code. How would you go about unwriting it? What happens if that code is only read once ever when the engine builds the game? At best you can overwrite it a second time, which might not ever be read in the aforementioned case, and is what leads to plugin incompatibilities in other cases when they both overwrite the same functions.
Now, you may be able fake "toggling" Altimit by having a script loop through the player, followers and every event on the map and forcing them back to 1x1 collision boxes, and forcing them all to adhere to 4 or 8 directional movement, then another one to overwrite all that to go back to "Altimit style" but it would be a significant amount of work
Consider what a plugin does: add or overwrite lines of code. How would you go about unwriting it? What happens if that code is only read once ever when the engine builds the game? At best you can overwrite it a second time, which might not ever be read in the aforementioned case, and is what leads to plugin incompatibilities in other cases when they both overwrite the same functions.
Now, you may be able fake "toggling" Altimit by having a script loop through the player, followers and every event on the map and forcing them back to 1x1 collision boxes, and forcing them all to adhere to 4 or 8 directional movement, then another one to overwrite all that to go back to "Altimit style" but it would be a significant amount of work
if you want MV default movement, you can do it, you need to test it out.
on top of the plugin, set this:
if ($gameSwitches.value(x)) { // if x = ON, you can use pixelmovement, else not
on the bottom of the function before })() if present
}
and that should activate the plugin or not 🙂 in most cases, this does work,
sometimes it doesn't.
on top of the plugin, set this:
if ($gameSwitches.value(x)) { // if x = ON, you can use pixelmovement, else not
on the bottom of the function before })() if present
}
and that should activate the plugin or not 🙂 in most cases, this does work,
sometimes it doesn't.
Did you actually try this before recommending it? It just makes it so Altimit doesn't run at all.
@AquaEcho for some plugin, when switch is ON, it does run normally,
for others it might not work, but there are plugins that add an option
to disable or enable the entire plugin as they want.
there are other ways though, but it can work with my plugin just fine 🙂
it depends how its made though.
for others it might not work, but there are plugins that add an option
to disable or enable the entire plugin as they want.
there are other ways though, but it can work with my plugin just fine 🙂
it depends how its made though.
Original thread: https://forums.rpgmakerweb.com/threads/altimit-pixel-movement-toggle.157641/