Wind pushes player while player can move

Hi all,

I'm interested in replicating an environmental hazard found in a lot of games: Wind shoves the player towards danger. The player is able to struggle against being pushed with their (slowed) movement.

Using chrono trigger as an example, the party is harassed by wind in multiple ways (hide behind tree or be ejected from dungeon/move against the direction of the wind to avoid falling off a cliff) on death peak.

Does anyone have ideas on how the player could still move in any direction (ideally slowed while running against direction of wind, sped up while running with it and slowly pushed while standing still or moving sideways-- ex. Wind comes from right so player is also moved to left while moving up or down) while also constantly being pushed in one direction by the wind.

Thanks!
Parallel process event with a set move route targeted on the player.

You'll have to experiment a bit to find the right number of moves and waits to simulate the wind strength you want, but that's the way to go.
As you've suggested, I've been playing with a parallel processing event that manipulates the player's move route.

It kind of works, but it mainly just results in a jerky tug-of-war between the player and the event taking turns interrupting each other for movement 🙁

I adjusted the wait time for the parallel process and that same tug-of-war result occurred.

Thank you regardless for your idea. What I really wanted was for the player to maintain control over their movement while being hindered by the wind.

Here's a screenshot of what I ended up with:

WindRPGFail.png
Experiment to try? Four Parallel events each looking for player facing certain way. If player faces that way then speed changes accordingly or if against wind an added 1 step back is thrown in there? Also looking at your screenshot - use 1 step backward instead of moving them as if they were walking - maybe also quick turn on direction fix, move the player and direction fix off so they don't face the way they move if it is the wind pushing them. I'm kind of experimenting with this type of wind challenge myself, but have not really put big time into it yet.
@Snacktaveous for something like this, wait25 is still low. Keep in mind that there are 60 frames per second, so wait(25) is still two moves down per second, and that is a strong wind.

You can also have that event change player speed to effect.
Just another perspective: I'd consider trying to intercept player movement input, e.g.
Spoiler
Code:
◆If:Button [Down] is pressed down
  ◆Set Movement Route:Player (Skip, Wait)
  :                  :◇Speed:3
  :                  :◇Move Lower Left
  ◆
:Else
  ◆If:Button [Left] is pressed down
    ◆Set Movement Route:Player (Skip, Wait)
    :                  :◇Speed:5
    :                  :◇Move Left
    ◆
  :Else
    ◆If:Button [Right] is pressed down
      ◆Set Movement Route:Player (Skip, Wait)
      :                  :◇Speed:2
      :                  :◇Move Right
      ◆
    :Else
      ◆If:Button [Up] is pressed down
        ◆Set Movement Route:Player (Skip, Wait)
        :                  :◇Speed:3
        :                  :◇Move Upper Left
        ◆
      :Else
        ◆Comment:Wherever the wind blows.
        ◆Set Movement Route:Player (Skip, Wait)
        :                  :◇Speed:3
        :                  :◇Move Left
        ◆
      :End
      ◆
    :End
    ◆
  :End
  ◆
:End
I think this example still needs some work, though; as a parallel it gives the player one "free" movement for every forced one, and as an autorun it features an unsightly delay between moves.

Original thread: https://forums.rpgmakerweb.com/threads/wind-pushes-player-while-player-can-move.96573/