Started by G_G, March 04, 2009, 12:14:28 am
$game_temp.player_new_map_id = <<New Map>>$game_temp.player_new_x = <<New X>>$game_temp.player_new_y = <<New Y>>$game_temp.player_new_direction = <<New Direction to face>>$scene.transfer_player
class Game_System attr_accessor :font # font attr_accessor :size # size alias re_init initialize def initialize @font = "Arial" @size = 20 re_init endendclass Font alias change_font initialize def initialize change_font self.name = $game_system.font self.size = $game_system.size endend
Quote from: game_guy on March 27, 2009, 05:11:11 pmAnother question I have something setup for a font changing size and and font changer. My script does what its supposed to do. This is the part thats not working I have the class game_system set up heres my script can someone help please?class Game_System attr_accessor :font # font attr_accessor :size # size alias re_init initialize def initialize @font = "Arial" @size = 20 re_init endendclass Font alias change_font initialize def initialize change_font self.name = $game_system.font self.size = $game_system.size endendWhen I use $game_system.font = "Arial Black" it doesnt work. the $game_system.size = 10 doesnt work eitehr can someone help?
$game_system.font = "Arial Black"change_font
class Game_System attr_accessor :font # font attr_accessor :size # size alias re_init initialize def initialize @font = "Arial" @size = 20 re_init endendmodule Font alias change_font initialize def initialize change_font self.name = $game_system.font self.size = $game_system.size endend
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.
Quote from: Blizzard on March 29, 2009, 08:41:22 amI suggest you rather use something like my Ultimate Font Override.
alias re_init initializedef initialize(*args) #stuff re_init(args)end
Quote from: game_guy on March 30, 2009, 11:54:27 pmHow do we cut image script wise. I seen it in Berans Ipod Script.I want to be able to cut that up in a script so I can use it or something. But how would I go like "cutting" it up like make it display only one section of the image?
self.bitmap = RPG::Cache.picture('Numbers', 0)self.ox = bitmap.width / 10self.oy = bitmap.height
module GameGuy Tilesets_Apply = [1] Terrain1 = "001-Grassland01" Terrain2 = "002-Woods01" Terrain3 = "003-Forest01" Terrain4 = "004-Mountain01" Terrain5 = "004-Mountain01" Terrain6 = "004-Mountain01" Terrain7 = "004-Mountain01"end class Scene_Map alias re_update update def update re_update if GameGuy::Tilesets_Apply.include?($data_tilesets[$game_map.tileset_name]) if $game_map.terrain_tag($game_player.x, $game_player.y) == 1 $game_map.battleback_name = GameGuy::Terrain1 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 2 $game_map.battleback_name = GameGuy::Terrain2 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 3 $game_map.battleback_name = GameGuy::Terrain3 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 4 $game_map.battleback_name = GameGuy::Terrain4 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 5 $game_map.battleback_name = GameGuy::Terrain5 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 6 $game_map.battleback_name = GameGuy::Terrain6 elsif $game_map.terrain_tag($game_player.x, $game_player.y) == 7 $game_map.battleback_name = GameGuy::Terrain7 end end endend
Tilesets_Apply = [1]
if GameGuy::Tilesets_Apply.include?($data_tilesets[$game_map.tileset_name])
module GameGuy Tilesets_Apply = [1, 3] Terrain1 = "001-Grassland01" Terrain2 = "002-Woods01" Terrain3 = "003-Forest01" Terrain4 = "004-Mountain01" Terrain5 = "004-Mountain01" Terrain6 = "004-Mountain01" Terrain7 = "004-Mountain01"end class Scene_Map alias re_update update def update re_update if GameGuy::Tilesets_Apply.include?($game_map.map_id) if $game_player.terrain_tag == 1 $game_map.battleback_name = GameGuy::Terrain1 elsif $game_player.terrain_tag == 2 $game_map.battleback_name = GameGuy::Terrain2 elsif $game_player.terrain_tag == 3 $game_map.battleback_name = GameGuy::Terrain3 elsif $game_player.terrain_tag == 4 $game_map.battleback_name = GameGuy::Terrain4 elsif $game_player.terrain_tag == 5 $game_map.battleback_name = GameGuy::Terrain5 elsif $game_player.terrain_tag == 6 $game_map.battleback_name = GameGuy::Terrain6 elsif $game_player.terrain_tag == 7 $game_map.battleback_name = GameGuy::Terrain7 end end endend