Is there any way to actually MOVE the game window?

Discussion in 'RPG Maker VX Ace' started by Benja, Nov 30, 2016.

  1. Benja

    Benja Lead Developer Veteran

    Messages:
    131
    Likes Received:
    28
    First Language:
    English
    Primarily Uses:
    RMVXA
    Alright, so I am creating a horror game in rpg maker that breaks the fourth wall to spook you


    I have already found a way to resize the window, but I am looking for a way to actually MOVE it. For example let's say the screen was in the center of the desktop, then something spooky happened and all of a sudden the game was on the side of the screen!


    Demonstration.png


    Any ideas on how this would be achievable?
     
    #1
    Dreadshadow likes this.
  2. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,328
    Likes Received:
    2,096
    First Language:
    Greek
    Primarily Uses:
    RMMV
    Voted up, I would like to know if it's possible too.


    Also, if you don't mind, can you PM me the way you resized the window?
     
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    36,911
    Likes Received:
    10,849
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    if you post how to resize it, that might provide some info on how to move it as well.
     
    #3
    Benja and Dreadshadow like this.
  4. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,328
    Likes Received:
    2,096
    First Language:
    Greek
    Primarily Uses:
    RMMV
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    36,911
    Likes Received:
    10,849
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    haha - the answer is right there.  Part of the resizing process involves moving the window so it's in the middle of the screen.  So you just need to do something similar, changing the x and y values rather than the width and height.
     
    #5
    Benja and Dreadshadow like this.
  6. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,328
    Likes Received:
    2,096
    First Language:
    Greek
    Primarily Uses:
    RMMV


    To be honest didn't read the code. I am on something at the moment.


    If the plugin is so straightfoward it can do fun stuff!!!
     
    #6
  7. Benja

    Benja Lead Developer Veteran

    Messages:
    131
    Likes Received:
    28
    First Language:
    English
    Primarily Uses:
    RMVXA
    Thank you, I'll try this out!
     
    #7
  8. Shaz

    Shaz Veteran Veteran

    Messages:
    36,911
    Likes Received:
    10,849
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    can you script?  Copy and rename that first method, and pass in arguments for the x and y values.  Or you could just pass in a direction (2, 4, 6, 8 to reflect the arrow keys) and do the calculations to move it to the left, right, top or bottom of the screen, based on the window size and the screen size.  The info is all there for you in that method.  You've just got to do slightly different calculations.
     
    #8
  9. Benja

    Benja Lead Developer Veteran

    Messages:
    131
    Likes Received:
    28
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'm not that versed in scripting, but I'll give it my best!


    Is there anyway you can show me what it would look like? (In case I can't do it)


    EDIT:


    Never mind! I got it working (The most ruby I've ever done  :p )


    Thank you!
     
    Last edited by a moderator: Nov 30, 2016
    #9
    Shaz likes this.

Share This Page