bitmap = Bitmap.new(width, height)
other_bitmap = Cache.picture("MyWindowBackground.png")
bitmap.blt(x, y, other_bitmap, Bitmap.new(bx, by, bw, bh))
bitmap = Bitmap.new(width,16)
vis_bitmap = RPG::Cache.picture(filename)
if var > width
bw = width
else
bw = var
end
bitmap.blt(x, y, vis_bitmap, Bitmap.new(x, y, bw, 16))
etheon":3ubvkmkx said:Code:self.windowskin = Cache.picture("MyWindowBackground.png")
The last parameter is Bitmap.new. Bitmap supports only two arguments. You need to change Bitmap into Rect. So the command goes:Near":2rblcby1 said:Ok yeah, FireRaven, that's what's happening. Do
you know how to use the entire picture as the
background?
Also, the erroring code on my 'blt' method is:
**var, width, x, y, and filename are for arguments in the method.Code:bitmap = Bitmap.new(width,16) vis_bitmap = RPG::Cache.picture(filename) if var > width bw = width else bw = var end bitmap.blt(x, y, vis_bitmap, Bitmap.new(x, y, bw, 16))
bitmap.blt(x, y, vis_bitmap, Rect.new(x, y, bw, 16))