• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Dual screen problem

  • 9
    Posts
    10
    Years
    • Seen Jan 31, 2015
    Hey Guys,
    Im using the dual screen script made by crazyninjaguy

    module Graphics
    @@fadeoutvp=Viewport.new(0,0,485,784)
    @@fadeoutvp.z=0x3FFFFFFF
    @@fadeoutvp.color=Color.new(0,0,0,0)
    end

    class Sprite_Picture
    def initialize(viewport, picture)
    @viewport = Viewport.new(0, 0, 512,784)
    @picture = picture
    @sprite = nil
    update
    end
    end

    module Resolution
    GetWindowPlacement = Win32API.new('user32','GetWindowPlacement',['l','p'],'l')
    GetSystemMetrics = Win32API.new('user32', 'GetSystemMetrics',['i'],'i')
    MoveWindow = Win32API.new('user32','MoveWindow',['l','i','i','i','i','l'],'l')
    FindWindowEx = Win32API.new('user32','FindWindowEx',['l','l','p','p'],'i')
    def self.windowloc(window)
    string = ' ' * 44
    Resolution::GetWindowPlacement.call(window,string)
    windowdetails = string.unpack('L11')
    result = []
    result.push((windowdetails[9] - windowdetails[7]))
    result.push((windowdetails[10] - windowdetails[8]))
    result.push(windowdetails[7])
    result.push(windowdetails[8])
    return result
    end
    end
    class Screen
    def self.center
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    width,height = Resolution.windowloc(window)[0..1]
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    Resolution::MoveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1)
    end
    def self.resize2(width,height,x,y)
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    Resolution::MoveWindow.call(window,x,y,width,height,1)
    end
    def self.move(x,y)
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    width,height = Resolution.windowloc(window)[0..1]
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    Resolution::MoveWindow.call(window,x,y,width,height,1)
    end
    def self.resize(width,height,center = true)
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    if center
    Resolution::MoveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1)
    else
    x,y = Resolution.windowloc(window)[2..3]
    Resolution::MoveWindow.call(window,x,y,width,height,1)
    end
    end
    def self.half(center = true)
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    if center
    Resolution::MoveWindow.call(window,(screenwidth - 326) / 2,(screenheight - 272) / 2,326,272,1)
    else
    x,y = Resolution.windowloc(window)[2..3]
    Resolution::MoveWindow.call(window,x,y,326,272,1)
    end
    end
    def self.default
    window = Resolution::FindWindowEx.call(0,0,"RGSS Player",0)
    screenwidth = Resolution::GetSystemMetrics.call(0)
    screenheight = Resolution::GetSystemMetrics.call(1)
    Resolution::MoveWindow.call(window,(screenwidth - 646) / 2,(screenheight / 2) - 273,646,512,1)
    end
    end

    Screen.resize(512,784)

    #----------------------------------------------
    @spacer=IconSprite.new(0, 384)
    @spacer.setBitmap("Graphics/Pictures/spacer")
    @spacer.z = 99999999
    #-----------------------------------------------

    and
    I can easily show pictures on the bottom screen by using the show picture command,
    but i made a "loadbg" picture which is 784 pixels heigh and want to show it in the
    loading screen. How can i do that? Only the top(screen) part of it appears.
    Just replacing the image doesnt seem to work.
     
    Last edited:
    Try changing the Y of the image.
     
    U mean in the Pokemon_load scrip section or where?
    Messing around with the y-coordinate only causes the whole scene to move down, i just want the WHOLE loadbg picture to be shown.
     
    Doesnt anyone know how this works or how i could show another picture at the bottom of the screen while the loadbg picture is shown on the top screen and erase them both at the same time?
     
    Back
    Top