Prevent Player from move

● ARCHIVED · READ-ONLY
Started by Andynator 4 posts View original ↗
  1. For a Mini-Game i have to modify the players movements with a parallel Process-Event, like that:

    If left is pressed

    => Move right

    To realize that, i have to make the Game ignore the normal move-Commands while the minigame is active.

    Any sugestions, how to do that?
  2. don't make it a parallel prozess, make it an autorun event - all player input is blocked while on autorun, but you should be able to check the buttons from inside that autorun.
  3. nope, did not work.

    The Player had to evade enemys, while his controls were messed up. The Autorun would not only block the user-Controls but also block the enemy-events from being executed through Player touch.
  4. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

    Do you just want the player to go in the OPPOSITE direction to the arrow key being pressed? This would be really easy to do as a quick script change.

    Allocate a switch and call it 'Opposite Movement' or 'Minigame Active' or something like that. I'll use 15 in the example, so wherever you see 15, replace it with the correct switch id.

    Then go to the Game_Player script, find the move_by_input method, and change it to look like this:

    def move_by_input return if !movable? || $game_map.interpreter.running? return if Input.dir4 <= 0 if !$game_switches[15] # minigame not active move_straight(Input.dir4) else # minigame active - move in opposite direction move_straight(10 - Input.dir4) end endNow you don't need to use a parallel process to control the player's movement.Do you also want to disable transferring to another map, random encounters, menu or debug access while this is happening?