#-------------------------------------------------------------------------------## Scrolling System# code by HamsterHai aka. Sartekk # Released 23.09.2010# version 1.0##-------------------------------------------------------------------------------# Taste zum Scrollen.. Taste gedrückt halten und mit Bewegungstasten scrollenScroll_Key = Input::L # Scrollgeschwindigkeit in Pixel/FrameScroll_Speed = 40#-------------------------------------------------------------------------------class Scene_Map < Scene_Base alias scroll_start start def start scroll_start @need_scroll_refresh = false end alias controll_scroll update def update controll_scroll if Input.press?(Scroll_Key) $game_map.scrolling = true @need_scroll_refresh = true if Input.press?(Input::LEFT) $game_map.scroll_left(Scroll_Speed) elsif Input.press?(Input::RIGHT) $game_map.scroll_right(Scroll_Speed) end if Input.press?(Input::UP) $game_map.scroll_up(Scroll_Speed) elsif Input.press?(Input::DOWN) $game_map.scroll_down(Scroll_Speed) end else if @need_scroll_refresh $game_map.scrolling = false $game_player.center($game_player.x, $game_player.y) @need_scroll_refresh = false end end endend#-------------------------------------------------------------------------------class Game_Map attr_accessor :scrolling alias scrolling_init initialize def initialize scrolling_init @scrolling = false endend#-------------------------------------------------------------------------------class Game_Player < Game_Character alias stop_by_scrolling move_by_input def move_by_input return if $game_map.scrolling stop_by_scrolling endend
das ding ist super grins, bei mir steht zwar L drin aber es geht nur mit Q. Für eine große karte wirklich hilfreich danke