I am making something in RMXP, and it requires a lot of bitmaps.
I need to be able to modify a bitmap in a class (@bitmap variable),
and then block transfer it to the bitmap of a window(self.contents).
The code I tried was:
[rgss]
class Thing
def update
@bitmap.clear
if @toggled
bmp = RPG::Cache.picture("file")
else
bmp = RPG::Cache.picture("")
end
@bitmap.blt(@x,@y,bmp,@rect)
@bitmap.draw_text(@rect,"pie")
end
end
class Window_Things < Window_Base
def refresh
self.contents.clear
self.contents.blt(0,0,@thing.bitmap,@thing.rect)
end
def update
refresh
super
end
end
[/rgss]
*All Variables are initialized.*
I put in the draw_text to see if it was doing the block transfer on the window's end, and it is, but the block transfer on the Thing's end isn't working.
Any help?
I need to be able to modify a bitmap in a class (@bitmap variable),
and then block transfer it to the bitmap of a window(self.contents).
The code I tried was:
[rgss]
class Thing
def update
@bitmap.clear
if @toggled
bmp = RPG::Cache.picture("file")
else
bmp = RPG::Cache.picture("")
end
@bitmap.blt(@x,@y,bmp,@rect)
@bitmap.draw_text(@rect,"pie")
end
end
class Window_Things < Window_Base
def refresh
self.contents.clear
self.contents.blt(0,0,@thing.bitmap,@thing.rect)
end
def update
refresh
super
end
end
[/rgss]
*All Variables are initialized.*
I put in the draw_text to see if it was doing the block transfer on the window's end, and it is, but the block transfer on the Thing's end isn't working.
Any help?