Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Stop all Movement script for XP

Umm this script works with VX... I guess you can call it unversal.

To use it just set the 81st switch ON and all movement will stop.

EDIT: Oh sorry... it thought you wanted it to be converted to from XP to VX... my bad... but anyways... I'll see what I can do. ^^
 
Here it's done...
I've rewritten a bit of it. :)

Code:
#=======================================================================

# Stop All Movement

# RMXP Port by Drago del Fato

# Original Name: Yanfly Engine RD - Stop All Movement

#

#=======================================================================

$imported = {} if $imported == nil

$imported["StopAllMovement"] = true

 

module YE

  module EVENT

    module SWITCH

      

      # Bind this switch to "Stop All" self movement on the map.

      STOP_ALL = 81

      

    end # SWITCH

  end # EVENT

end # YE

 

class Game_Character

  

   alias new_passable passable?

    def passable?(x, y, d)

      if $game_switches[YE::EVENT::SWITCH::STOP_ALL]

      return false if self != $game_player

      end

      new_passable(x, y, d)

     end

    

end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top