The Higher the frequency?

So I was able to eventually make my cars move, as you may have seen by my constant amount of posts. And I thought I could do it where the car moves, and on event touch, interacts with the player. Either by telling the player to get off the road or insta kills you. Which is cool. And works. Accept when it doesn't.

The cars freq setting in the event is set to highest. To give it that constant smooth flow. But I noticed that at anything other then highest, when the event touched the player and interacts, when the interaction is done the player can resume moving, until touched again. But on highest, the player is stopped and all other events and movement cease to exist after the event interacts with the player.

Do we know why that it is? Why is it that one freq setting that causes the game to "stop" essentially when an event interacts with a player?

You can try this out for your selves by creating an event that moves across the map with a custom movement, and has event touch set. Then set up a conditional to say if some switch if off, show a window with text, turn on some switch. Play around with the freq settings, but notice that Highest disrupts the players ability to move after the window box has gone away.

Is there a way around it?
This should not be - can you give us a screenshot of how exactly the event looks?
42977-9fe537f9c274217da0c23e4e0c65ae4b.jpg


So notice here that the freq: highest. The event is super simple. He has a custom route that moves him right, he will interact with the player. Once he does a text box will open, then a switch is thrown. On ANY other frequency, you can move after this interaction. On Highest, you cannot.

From my understanding I should not need a self switch or another event page. This should work.
please check where the switch is used - there is a good chance that more than one other event react to that switch, and that the problem is caused by those other events.

And do yourself a favor and always name switches and variables as soon as you use them, because then you can be sure that you don't accidentally assign switches to multiple function (because if it has a function, it will be named and no longer available for a quick use.
I chose this switch because I know nothing is using it, this was an example to show you. I generally do name all things including events. There is no other event using this switch

I also have no scripts that use this switch

there are also no other events on this scene that would cause this issue. If you try this in your game maker on a blank map or in a new game, you should get the same result as me.
Check your plug-ins. Yanfly uses switch 42 to disable ALL movement on the map.
Checked all plugins 😛

42985-4bd0713e1074ef5b67c5c4aa16a19b24.jpg


There are no plugins. No other events, no nothing. Zip. is this now a bug?
I have an idea though...what is your move route for that event? You see, unless you do something to change it, that event is going to touch the player, then touch the player, then touch the player, and so on over and over and over all day (and that is even with the switch turned off, as the event is still there and still moving). That is probably what you are seeing, as on a low frequency you're probably getting out of the way fast enough, but on a high one you're not, and you're now stuck in an infinite collision loop.

I actually made this same error once except with a battle processing. Infinite battles anyone?
I have an idea though...what is your move route for that event? You see, unless you do something to change it, that event is going to touch the player, then touch the player, then touch the player, and so on over and over and over all day (and that is even with the switch turned off, as the event is still there and still moving). That is probably what you are seeing, as on a low frequency you're probably getting out of the way fast enough, but on a high one you're not, and you're now stuck in an infinite collision loop.

I actually made this same error once except with a battle processing. Infinite battles anyone?


I thought this was the case too, it just moves right. Like 4 spaces. How ever as stated before on lower frequencies it works fine, you hit, you see text, you move. On the highest setting, you hit, you see text NOTHING HAPPENS.

So I have created a project with the issue:

https://gofile.io/?c=eOzAqO

Run it as is, let the guy hit you. See the text box. After words. Try to move. You cant.

Now change the frequency to anything other then highest - LEAVE EVERYTHING AS IS OTHER THEN FREQUENCY - ans notice how you can move.

This project has no scripts, no other events, no nothing. is this intended? or a bug? or a user issue?
Like I said, you're getting into an infinite loop on the higher frequencies. You need to do something to either turn off the move route of that guy, or turn off the event.

Also, your event logic is really off on this event. What you should do for that guy is this:

Page 1:
Show Message: Touched.
Switch 42 = ON

Page 2: No sprite on this page, check condition switch 42 ON. Nothing in the event, leave all other feature as-is

If you do that, the sprite will disappear when you get touched. As it is, it is just hanging there, and constantly moving into you as you turn off the switch but don't do anything else with the sprite (No else clause in your code, and no other pages). So again, I think you're getting into an infinite loop due to how often it is hitting you (due to the high frequency, and nothing to run as the switch is off), and you need to do something more with the event once it hits you.
Show Message: Touched.
Switch 42 = ON

Page 2: No sprite on this page, check condition switch 42 ON. Nothing in the event, leave all other feature as-is

There cannot be a second page because I need the person to keep moving in the direction they are after the event triggers on touch. You see this with lower frequencies.

If you do that, the sprite will disappear when you get touched.

I do not want this to happen. I want the text box to appear, you hit enter, you carry on. You see this with lower frequencies.


So again, I think you're getting into an infinite loop due to how often it is hitting you

If this is the case all because of "higher frequency" then I think the concept of higher speed was mixed up here. With a higher speed the event would move faster - the tool tip for frequency should be updated to better explain what it means as you increase the frequency. because as stated for lower frequencies you get a jerkier movement, but you are able to carry on after hitting enter on the text box.


So the solution I came up with then for cars on the road simulating traffic is to prevent the player to walk on the road, because the concept was that the car would hit you, a 1/4 times you would die the other 3 you would be yelled at, because cars need a high frequency to move smoothly, and each additional page is used to "switch car types" my idea of "being hit" wont work.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/the-higher-the-frequency.78755/