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.

[VX] Simple 8-Way Movement

          I have made a very simple 8 directional movement system for rmvx(you only face in 4 directions).

          The script is here:
Code:
#============================================================================
# VX Near Game_Player Edit Final Version
#----------------------------------------------------------------------------
#     Provides 8 Directional Movement to the Default Movement System.
#============================================================================
class Game_Player
  def move_by_input
    return unless movable?
    return if $game_map.interpreter.running?
    case Input.dir8
    when 1;  move_lower_left
    when 2;  move_down
    when 3;  move_lower_right
    when 4;  move_left
    when 6;  move_right
    when 7;  move_upper_left
    when 8;  move_up
    when 9;  move_upper_right
    end
  end
end
Just put it under the Materials section in the script editor. No other knowledge required.


Bye-Bye.
 

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