Target on map grid

Hey there, first post here!

I'm currently working of a farming game demo and I wanted to add a ''target grid (not sure of what you would call it'' to where the player is going to interact.

I managed to get it somewhat working but then I wanted to optimize it even further and added a ''turn in place plugin'' and that's when my problem started.

Basically my eventing doesn't seem to count a turn in place as a change to where the character is facing?

I'll post on the attachments the way that the mechanic works and maybe someone can help me figure out if it is a eventing problem or maybe a plugin one?

Thanks in advance, I won't get into much more detail as I don't want to make a huge wall of text, but please tell me if you need any more info.


Fixed!
From your description and the portion of event you show, I don't see anything that should trigger on a change in facing.

Are you saying that you turn your character to face a given direction, run that common event, and it goes into the wrong conditional branch?

It would help more to actually see the whole event as well as whatever is calling it.
In Variable Operations, you can add Scripts. This might be what you need, but I cannot tell for sure.

$gamePlayer.screenX() and $gamePlayer.screenY() return the position of the player as pixels. So you could write e.g. $gamePlayer.screenX() - 48 to get the position to your left, and then show/move the picture according to these variables.

You may need to adjust the variables a bit.
From your description and the portion of event you show, I don't see anything that should trigger on a change in facing.

Are you saying that you turn your character to face a given direction, run that common event, and it goes into the wrong conditional branch?

It would help more to actually see the whole event as well as whatever is calling it.
Mhmm I just realised that the way it is working is that each tile you walk on it runs the event above, what I probably needed was to make something that is always checking in a loop which way the player is facing/else, for each direction, I'm not sure how to do that yet
In Variable Operations, you can add Scripts. This might be what you need, but I cannot tell for sure.

$gamePlayer.screenX() and $gamePlayer.screenY() return the position of the player as pixels. So you could write e.g. $gamePlayer.screenX() - 48 to get the position to your left, and then show/move the picture according to these variables.

You may need to adjust the variables a bit.

That is a little confusing but I'll understand while doing it, I'll try it and edit later, thank you!
Hm, so you're using both Yanfly's Region Events, and Galv's Stationary Turn, but the region events only trigger when you actually move a step within a region, and not when you do a stationary turn, is that it? Presumably the two plugins aren't really designed to work together; you might need to edit one or both of them to make sure Region Events tries to trigger when you do a Stationary Turn. Or try one of the other turn in place plugins (like this one: https://forums.rpgmakerweb.com/index.php?threads/turn-in-place.61722/ ) to see if they happen to work.
Fixed, thanks a lot for your help everyone!

Original thread: https://forums.rpgmakerweb.com/threads/target-on-map-grid.161858/