PHP-Code: if $game_variables[5] > 1 then $speed = 2 $v_speed = 0 class Spriteset_Map alias pano_update update def update pano_update @panorama.ox += Graphics.frame_count * $speed @panorama.oy += Graphics.frame_count * $v_speed end end else $speed = 0 $v_speed = 0 class Spriteset_Map alias pano_update update def update pano_update @panorama.ox += Graphics.frame_count * $speed @panorama.oy += Graphics.frame_count * $v_speed end end end Das sollte doch auch funktionieren, oder?? Ich habe es nicht getestet, also kann danach eine Fehlermeldung kommen. Beutrteilt mal mein erstes verbessertes Script...
if $game_variables[5] > 1 then $speed = 2 $v_speed = 0 class Spriteset_Map alias pano_update update def update pano_update @panorama.ox += Graphics.frame_count * $speed @panorama.oy += Graphics.frame_count * $v_speed end end else $speed = 0 $v_speed = 0 class Spriteset_Map alias pano_update update def update pano_update @panorama.ox += Graphics.frame_count * $speed @panorama.oy += Graphics.frame_count * $v_speed end end end
Foren-Regeln