Help with sliding Puzzle

I am trying to make a puzzle where once you step in the room you slide end to end and you only stop when you hit an object or wall. So far it is going pretty good however I have run into a few issues I was hoping I could get help with. I have attached a picture of the map.

2017-12-09 15_14_08-Interconnection - RPG Maker VX Ace.png


If you look at the map you will see a red box and a blue arrow. Basically what is happening is within that red box is the region transition. So I am using Region ID 2 for the sliding tile and Region 3 to go back to normal. My issue is that when you take that first step onto the sliding tile it doesnt slide right away. You step on it as if it was normal. If you click upwards you will then start to slide and if you click downwards you slide all the way to the bottom despite the fact you would be stepping on Region 3.

The Blue arrow is more or less similar. This is basically the path to leave and I want it so you slide down and stop immediately when touching that Region 3 tile but like the last bit of the first issue, you slide all the way down before everything returning to normal.

I have also attached my events for accomplishing this. I got a bit lazy so I didnt upload the whole thing but with the first Event ID 17 file What I have there is basically copied and pasted for each direction before getting to the 2nd picture.
change the move route instructions, from 1 step forward, to script
Code:
move_straight($game_player.direction) if $game_map.region_id($game_map.x_with_direction(self.x, $game_player.direction), $game_map.y_with_direction(self.y, $game_player.direction)) == 2

that should take care of the whole set of conditions

also, consider adding some switching procedure to turn that section on and off, so that the game is not always processing it.
change the move route instructions, from 1 step forward, to script
Code:
move_straight($game_player.direction) if $game_map.region_id($game_map.x_with_direction(self.x, $game_player.direction), $game_map.y_with_direction(self.y, $game_player.direction)) == 2

that should take care of the whole set of conditions

also, consider adding some switching procedure to turn that section on and off, so that the game is not always processing it.
I tried this in a game of my own and it worked. You should use that method, xShoot4WarAmpsx.
Thanks, I will give it a try later and let you guys know. The processes you are talking about, do they just run on the map or it will continue running even after? I ask this because I do have this on several maps. I know I have a map full of spike traps and I do notice a bit of performance decline when I enter that section.
I have the same puzzle map, and I used Yanfly Slippery Tiles, it works almost like a plug and play 😛
I have the same puzzle map, and I used Yanfly Slippery Tiles, it works almost like a plug and play 😛
I totally forgot that script! Use that for sure.
So I tried it but I got this error. I made the old event inactive and made a new one with just the script, copied and pasted. Was I suppose to do anything else?
2017-12-09 21_14_14-Interconnection.png


I also get this one if I use the script in the Conditional branch
2017-12-09 21_23_03-Interconnection.png
the script call will make the player move in whatever direction it's looking at.
you don't need to check which direction, or region.

to reduce the lag, try a "latch lock" system.
two events, one at each end of a section to enclose, turning one another on and off.
here's an example

1.jpg
2.jpg
nuevo-3.jpg
4.jpg

pay attention to the logic of the switches, they are all positive because the engine doesn't account for negatives, but it's a property of logic that positive always equals not-negative, so you can flip the logic and use positives to represent negatives.
yay logic!
I am giving that a try but I from the looks of it, this doesnt work. from what you have there, there is no way for these events to be turned on. The way you have it. One of these switches needs to be on for the other to trigger but when you start both switches are going to be off. So Area in is going to need. When I make that adjustment I still get the error I posted above.
you set the switches that need to be ON, ON.
it's not that hard.
you set the switches that need to be ON, ON.
it's not that hard.

That still doesnt fix the errors I get with the script. I have still gone backwards. What I had at least 85% worked. Now it isnt functional at all.
the script call is perfectly fine
put it where I showed you, and it has to work.

if the events don't activate, try setting them to below character, and mark the through check.
The script doesnt work. Any time it gets called I get the error and it crashes. It doesnt matter how I use it. If I used the code with my old events I still get the same result. The script is the issue.

2017-12-10 15_52_39-Interconnection - RPG Maker VX Ace.png


I finally got the script working but again it does less than what I had and in no way address what I asked in the first place. The guy litereally just walks into a wall and stops and game freezes.... Yes Skip if cant move is on. Frankly I am done with this. All you guys have done is basically try to get me to redo what I had working and didnt address the small question I asked.

All I wanted was for my character to stop when he left and if possible slide immediately. Instead I just went backwards. I am just going back to the way I had it.
Have you tried the script solution I posted above?
Have you tried the script solution I posted above?

Did you read any of the comments I posted....... Preferably the ones where I said the script gave an errors, the one stating that I got it working and it didnt accomplish what I wanted? I understand my tone right now is not ideal but you can understand my frustration when I am told to do things I have already done and asked questions that are easily answered by reading the posts I wrote.... I figured out what I wanted on my own using the way I originally had it.
I figured out what I wanted on my own using the way I originally had it.
Alright then, good luck with your own way. I simply give you an alternative way that you wont be frustrated with your own doing (Your goal is to make slippery tiles anyway). Yes, I read your comments. I (also) simply not prefer doing it via event since it's much hassle and cluttered up (also hard to debug) when someone already made script for it.

But hey, to be fair, you didn't reply my comment in the first place and stated why u didn't want it, that makes me wonder if you actually missed it (so I could say the same thing, 'did u read my comment?') :v
Did you read any of the comments I posted....... Preferably the ones where I said the script gave an errors, the one stating that I got it working and it didnt accomplish what I wanted? I understand my tone right now is not ideal but you can understand my frustration when I am told to do things I have already done and asked questions that are easily answered by reading the posts I wrote.... I figured out what I wanted on my own using the way I originally had it.

We are sorry that it did not work for you. I did get the process from gstv87 to work for me, but I had to change a few things. I also did not like the way it worked. I have used the script that Theoallen suggested (I actually have it in my current project) which works wonderfully.

If what you did works for you then go with that. But if you decide to try the script "slippery tiles from Yanfly" then give it a go. I recommend it as it would take care of everything you mentioned.
upload_2017-12-11_7-34-0.png


the script itself, *complete*, *one single line*
Code:
move_straight($game_player.direction) if $game_map.region_id($game_map.x_with_direction(self.x, $game_player.direction), $game_map.y_with_direction(self.y, $game_player.direction)) == 2

my structure
upload_2017-12-11_7-34-54.png


your structure
upload_2017-12-11_7-35-27.png


see the problem?

please make sure you use the script line as I posted it.
FYI As posted above, I fixed that long ago and it didnt work properly, the error went away but it didnt do what I wanted it to do. I went back to what I had and made some changes and now it works as intended.
¯\_ツ_/¯
a'igh... then problem solved, I guess.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-sliding-puzzle.88266/