Helpful Information
 
 
Category: Ruby & Ruby On Rails
Lag code?

Hi, is there a way to do a skip movement or a lag of some kind?

In a 2D game I believe this is the movement steps


class Window_Steps < Window_Base
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $defaultfonttype # "Number of Steps" window font
self.contents.font.size = $defaultfontsize
refresh
end
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Number of Steps")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)
end
end


or this one.


Graphics.frame_rate = 100


I know this one above speeds or slows down movement.

This is what the movement looks like currently.
http://www.youtube.com/watch?v=uM4KH7Q0Q9c

This is what I am looking to do. (Please forward to time frame 1:04 to see movement).
http://www.youtube.com/watch?v=Ks0De4e7iNs&feature=related










privacy (GDPR)