- Joined
- Mar 19, 2016
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hi there,
I am fairly new to all this, but am not that new to programming. Just a heads up that I am ok with script solutions.
I believe this is a common problem and I have been searching a lot, but did not find anything concrete.
I attached an image. In there you should see a red line. I want the player to not move past the red line from left or right. However the tiles next to the line, I still want to be passable.
I tried to solve this by putting an event on the grass tiles, saying that when the player touches the event from the left, turn THROUGH off. Else turn THROUGH on. (Indeed this is not the complete solution but I am testing for now.)
What happens is that I indeed can't pass the line left to right, but the moment I enter the grass tile from another angle, I can pass over the line from left to right again. As if the event can't be triggered again or the Through flag cant be turned off again.
If : Player is facing Right
Set Movement Route : This Event
: Through Off
Else
Set Movement Route : This Event
: Through On
End
Also my Option for through is checked off in this case.
Is it something I did? Or am I missing some wait or closing commands? or just improper handling?

I am fairly new to all this, but am not that new to programming. Just a heads up that I am ok with script solutions.
I believe this is a common problem and I have been searching a lot, but did not find anything concrete.
I attached an image. In there you should see a red line. I want the player to not move past the red line from left or right. However the tiles next to the line, I still want to be passable.
I tried to solve this by putting an event on the grass tiles, saying that when the player touches the event from the left, turn THROUGH off. Else turn THROUGH on. (Indeed this is not the complete solution but I am testing for now.)
What happens is that I indeed can't pass the line left to right, but the moment I enter the grass tile from another angle, I can pass over the line from left to right again. As if the event can't be triggered again or the Through flag cant be turned off again.
If : Player is facing Right
Set Movement Route : This Event
: Through Off
Else
Set Movement Route : This Event
: Through On
End
Also my Option for through is checked off in this case.
Is it something I did? Or am I missing some wait or closing commands? or just improper handling?

Last edited by a moderator:



