8 Direction movement compatible Player turn-in-place.

HopeFragment

H'witch Nerd
Veteran
Joined
Mar 15, 2014
Messages
121
Reaction score
11
First Language
English
Primarily Uses
RMVXA
What I mean by turn and move is, I need a script that will allow the player to be able to change direction before walking a step if they press the arrow key for just a small second, like in Pokemon. (Player only, not the caterpillar.) I know there are a lot of scripts that do this, but most of them don't work correctly for me because I'm using Hime's 8 Directional walking script, along with 8 directional sprites. (Well, I'm going to anyway, the diagonal sprites aren't finished yet, so currently I have the 8 direction sprites set to false.)

Anyway, I was using SirBilly's turn and move script for a long time and it worked perfectly, but when I added the 8 directional walking script, the script was no longer functioning. So I had to find one that was compatible with 8 directional movement. I came across FenixFyreX's player turn in place script. It works, except that for whatever reason, the player is allowed to turn in place even while talking to someone. I'd ask FenixFyreX themself if they could fix that bug, but the post is on the VXACE forums, which I can't post at all on or even view profiles even though I have an account there and I can't figure out why I can't.

So basically, I need either a fix for that script, or a new script altogether that is compatible with the 8 directional movement (and 8 directional sprites, which my game will eventually have). Either is fine with me.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
For fenixfyre's script does the turning issue while talking occur without the movement script?
 

HopeFragment

H'witch Nerd
Veteran
Joined
Mar 15, 2014
Messages
121
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Just tried it, and yes, it still occurs without the movement script.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It doesn't check whether you can "move" or not.

Code:
return if !movable? || $game_map.interpreter.running?
Line 21 looks like this
Code:
  alias move_by_input_turn_in_place move_by_input  def move_by_input(*a,&    @press_dir_count ||= 0    return dir_by_input if turn_in_place?    @old_tapdir_direction = @direction    move_by_input_turn_in_place(*a,&  end
You should check this:
Code:
  alias move_by_input_turn_in_place move_by_input  def move_by_input(*a,&    return if !movable? || $game_map.interpreter.running? ###    @press_dir_count ||= 0    return dir_by_input if turn_in_place?    @old_tapdir_direction = @direction    move_by_input_turn_in_place(*a,&  end
 

HopeFragment

H'witch Nerd
Veteran
Joined
Mar 15, 2014
Messages
121
Reaction score
11
First Language
English
Primarily Uses
RMVXA
That worked, thank you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top