EAM_Viewport.rb
def move(x,y,frame,ease=:linear_tween,callback=nil)
		@transition["stX"] = self.rect.x
		@transition["stY"] = self.rect.y
		@transition["edX"] = x
		@transition["edY"] = y
		@transition["frame"] = 0
		@transition["totFrame"] = frame
		@transition["ease"] = Ease.method(ease)
		#@transition["XValue"] = self.rect.x
		#@transition["YValue"] = self.rect.y
		@transition["callback"] = callback
		@transition["active"] = true
		@transition["type"] = "linear"
	end
# Animate position (straight line)
Animate position (straight line)
Animate position ( straight line )
def move(x,y,frame,ease=:linear_tween,callback=nil)
		@transition["stX"] = self.rect.x
		@transition["stY"] = self.rect.y
		@transition["edX"] = x
		@transition["edY"] = y
		@transition["frame"] = 0
		@transition["totFrame"] = frame
		@transition["ease"] = Ease.method(ease)
		@transition["callback"] = callback
		@transition["active"] = true
		@transition["type"] = "linear"
	end
def move ( x , y , frame , ease = :linear_tween , callback = nil ) @transition [ "stX" ] = self . rect . x @transition [ "stY" ] = self . rect . y @transition [ "edX" ] = x @transition [ "edY" ] = y @transition [ "frame" ] = 0 @transition [ "totFrame" ] = frame @transition [ "ease" ] = Ease . method ( ease ) @transition [ "callback" ] = callback @transition [ "active" ] = true @transition [ "type" ] = "linear" end
Animate position (straight line)
Animate position ( straight line )
#@transition["XValue"] = self.rect.x #@transition["YValue"] = self.rect.y
x
y
frame
ease
callback