Is there a way for people to still move around with mouse click with this? I've just downloaded it, but still want to use mouse click to move around.
Turn In Place
● ARCHIVED · READ-ONLY
-
-
@AnniexoHoshi Yes. Just like with keyboard input, if you hold down your left mouse key for a wait count number of frames, the player will be able to move via mouse input.
-
Thank you, but is there a way for the player to be able to let go of the mouse button and the character still move to where the click was?@AnniexoHoshi Yes. Just like with keyboard input, if you hold down your left mouse key for a wait count number of frames, the player will be able to move via mouse input.
-
@AnniexoHoshi MV should do that automatically. None of that is explicitly coded into this very short plugin.
-
@mjshi I think you might have done something by mistake and not realised it. For me, I have to hold down the mouse button to where I want the character to go. If I let go they stop in their place. If you could, is there a way you can make it so double clicking makes the character more?
-
@AnniexoHoshi This isn't an official release but I spent the last hour on this and there's still a couple bugs I haven't ironed out, but it should function for large movements. Yes, I'm aware that occasionally you'll get stuck behind a wall and will have to hold down for finer movements. Also, if you click somewhere else while in the middle of a move route yes the player will stop moving. I'm aware of those two behaviors. The first is unintentional and a bug, the second is intentional but might be mistaken for a bug.
How I've gotten it to work with double clicks is this-- MV remembers the tile you last clicked on and if you click on that tile again it will autopath to there. Obviously this method is imperfect and for some reason is messing with the way MV handles autopathing by default. I'm not really sure why.
I still recommend the officially supported way of movement over this. MV doesn't support double clicking, unfortunately u.u
This is the best I can do to emulate that behavior. I probably won't be posting any updates or fixes to this double clicking version past the one posted here. -
shorter (and cleaner) way to accomplish this is fewer lines (without the plugin)
Code:// player can turn in place Game_Player.prototype.executeMove = function(direction){ if(Input.isLongPressed(Input._latestButton) || $gameTemp.isDestinationValid()){ this.moveStraight(direction); } else{ this._direction = (direction); } } -
Hey, so i think this might be on your end? but I was wanting to use Tyruswoo's camera control plugin
[found here]
https://forums.rpgmakerweb.com/index.php?threads/camera-control-plugin-by-tyruswoo.51325/
and when i have your plugin and this one installed and running my character can no longer move. do you have any idea of how to fix this? -
@KitteyWolf Have you tried switching the order of the plugins? His camera control plugin overwrites something completely, so Turn In Place needs to be below it.
-
@mjshi i did! it was just not working-
though i ended up using a different plugin for both the camera and turning in place
[i still like yours, but another one is made by a person i'm already using plugins by and it cleans up my credit page nicely] -
@KitteyWolf
Strange, works for me when I put Turn In Place under camera control. Might be another plugin in there causing the issue, or something else entirely.
gif
But either way, I'm glad you were able to find another option ^^ -
I think I found a solution to your problem, (which had also become mine):I'm using
I find it a shame that I can't use these two scripts simultaneously, as my game needs diagonal movement, but I'd love to have turning in place.
In rpg_sprites.js replace line 322 with:
Sprite_Character.prototype.characterPatternY = function() {
return (((this._character.direction() == 1) ? 2 : ((this._character.direction() == 7) ? 4 : ((this._character.direction() == 9) ? 8 : ((this._character.direction() == 3) ? 6 : (this._character.direction())))))- 2) / 2;
};
This works fine for me. I hope it can help you, too. -
Thanks! I use 8 frames per character and diagonal movement (GALVs scripts) and your fix did it for me.I think I found a solution to your problem, (which had also become mine):
In rpg_sprites.js replace line 322 with:
Sprite_Character.prototype.characterPatternY = function() {
return (((this._character.direction() == 1) ? 2 : ((this._character.direction() == 7) ? 4 : ((this._character.direction() == 9) ? 8 : ((this._character.direction() == 3) ? 6 : (this._character.direction())))))- 2) / 2;
};
This works fine for me. I hope it can help you, too.
And thanks to mjshi for this plugin. I use this in combination with Talk to Follower and it works fine. :cool: -
Hello, sorry if I'm kinda late, but I've been suffering from an issue when using your plugin. When using move route commands, the game doesn't do it automatically, I have to hold any directional key for the character to move the way I defined.
I've tested without any other plugin and the issue persists even with only your plugin.
I don't even know if it's intentional, and I'd like to know if I can do something about it.
Thank you. -
I've also noticed with this plugin that the "wait" command for the player gets completely ignored in move routes. Really frustrating because this is a really really useful plugin to have otherwise.Hello, sorry if I'm kinda late, but I've been suffering from an issue when using your plugin. When using move route commands, the game doesn't do it automatically, I have to hold any directional key for the character to move the way I defined.
I've tested without any other plugin and the issue persists even with only your plugin.
I don't even know if it's intentional, and I'd like to know if I can do something about it.
Thank you. -
@Phantasmagoric @Destra47
Sorry for the late reply, can you try the newest version? https://raw.githubusercontent.com/mjshi/RPGMakerRepo/master/TurnInPlace.js
I wasn't able to replicate Phantasmagoric's issue but Destra47 wait commands have been fixed. -
Works perfectly! Thank you so much.@Phantasmagoric @Destra47
Sorry for the late reply, can you try the newest version? https://raw.githubusercontent.com/mjshi/RPGMakerRepo/master/TurnInPlace.js
I wasn't able to replicate Phantasmagoric's issue but Destra47 wait commands have been fixed. -
@Phantasmagoric @Destra47
Sorry for the late reply, can you try the newest version? https://raw.githubusercontent.com/mjshi/RPGMakerRepo/master/TurnInPlace.js
I wasn't able to replicate Phantasmagoric's issue but Destra47 wait commands have been fixed.
Well, even though you couldn't replicate it, it seems to be working just fine now. Mine and Destra's problems were probably related to each other.
Thank you so much! -
Hello @mjshi, I like your script, but there is one problem I think. When I turn on your plugin, animation is super-fast. I mean stepping animation of character/player.
Edit: got the actual version from github and it works fine, so I think link in the first post leads to the old version. -
*siiiiiiiiiigh* of course I notice there's a page 2 to the comments after debugging and fixing an issue on my own.
FYI @mjshi, I hit the same issue as @fizzly, and yes, version v1.0a does fix it (not the version currently linked in the original post). In my case I fixed it by using my own variable to track the move wait instead of using the existing ._waitCount variable attached to the object, but it seems your fix is to simply early return any time the event is actively running (and not mess with _waitCount), which makes perfect sense!
Anyway, thanks for making this script!