- Joined
- Jun 30, 2017
- Messages
- 5
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
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.
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.
// 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);
}
}
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.
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.
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.
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.