Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 AWorks Fix Walk Speed XP
#1
AWorks Fix Walk Speed
Created by: AWorks(vgvgf)
Version: 1.00
Updated: 18/06/2009(dd/mm/yyyy)

This is one of my shortest and simplest scripts. Useful though.

Description
This script modifies the movement speed of events and the player when they walk in a diagonal direction. Normaly when a event walk in a diagonal, it will move faster than it should.

Code:
#=============================================================================
# *** AWorks Fix Walk Speed XP
#=============================================================================
# Created by AWorks
# Version: 1.00.XP
# Updated: 18/06/2009 (dd/mm/yyyy)
#=============================================================================
#==== Description ====
# This script modifies the movement speed of events and the player when they
# walk in a diagonal direction.
#=============================================================================

#==============================================================================
# ** Game_Character
#==============================================================================
class Game_Character
  #--------------------------------------------------------------------------
  # * Update frame (move)
  #--------------------------------------------------------------------------
  def update_move
    if @x * 128 != @real_x and @y * 128 != @real_y
      distance = 2 ** @move_speed / Math.sqrt(2)
    else
      distance = 2 ** @move_speed
    end
    if @y * 128 > @real_y
      @real_y = [@real_y + distance, @y * 128].min
    end
    if @x * 128 < @real_x
      @real_x = [@real_x - distance, @x * 128].max
    end
    if @x * 128 > @real_x
      @real_x = [@real_x + distance, @x * 128].min
    end
    if @y * 128 < @real_y
      @real_y = [@real_y - distance, @y * 128].max
    end
    if @walk_anime
      @anime_count += 1.5
    elsif @step_anime
      @anime_count += 1
    end
  end
end
Reply }
#2
Haha. Useful script, especially for games with 8-dir movement. I've always found that faster diagonal move speed annoying.
Reply }
#3
awesome script. thank you vgvgf!!!
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   XRXS No114: Manage Battle Speed Helel 0 5,579 12-07-2009, 09:18 AM
Last Post: Helel
   AWorks Frame Skip vgvgf 0 3,946 09-23-2009, 11:57 PM
Last Post: vgvgf
   AWorks Fix Walk Speed VX vgvgf 0 3,982 09-23-2009, 11:41 PM
Last Post: vgvgf
   Speed Up Battles During Test Play RPG Advocate 0 3,865 03-03-2008, 06:09 AM
Last Post: RPG Advocate
   Speed Based Turns CBS Trickster 0 5,509 03-02-2008, 06:50 AM
Last Post: Trickster



Users browsing this thread: