sirsk8aton Member 150 Aug 30, 2006 #1 How would I show the battler graphic within a script? Thanks in advance.
Daniel Member 186 Aug 30, 2006 #2 Paste this in a scene in that window: Code: bitmap = RPG::Cache.battler("battler_filename") self.contents.blt(x, y, Rect.new(bitmap.width, bitmap.height), bitmap) Or if you don't want it to be on a window, use a sprite like this: Code: @battler_sprite = Sprite.new @battler_sprite.bitmap = RPG::Cache.battler("battler_filename") Upvote 0 Downvote
Paste this in a scene in that window: Code: bitmap = RPG::Cache.battler("battler_filename") self.contents.blt(x, y, Rect.new(bitmap.width, bitmap.height), bitmap) Or if you don't want it to be on a window, use a sprite like this: Code: @battler_sprite = Sprite.new @battler_sprite.bitmap = RPG::Cache.battler("battler_filename")
Daniel Member 186 Aug 30, 2006 #4 I changed the bottom code a bit in case if you used that one. Upvote 0 Downvote