Benja

Lead Developer
Veteran
Joined
Mar 5, 2014
Messages
131
Reaction score
25
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?
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,088
Reaction score
2,681
First Language
Greek
Primarily Uses
RMMZ
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?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,155
Reaction score
14,652
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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,155
Reaction score
14,652
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.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,088
Reaction score
2,681
First Language
Greek
Primarily Uses
RMMZ
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.



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!!!
 

Benja

Lead Developer
Veteran
Joined
Mar 5, 2014
Messages
131
Reaction score
25
First Language
English
Primarily Uses
RMVXA
Thank you, I'll try this out!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,155
Reaction score
14,652
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.
 

Benja

Lead Developer
Veteran
Joined
Mar 5, 2014
Messages
131
Reaction score
25
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:

Latest Threads

Latest Posts

Latest Profile Posts


No water this time, just trying for a majestic cliffside... The cave snuck in because I liked it. Now I guess I need a mini cave map or "secret" for it. :kaoswt:
Revamped the crew for my VN about thirty times. Only character that's stayed constant has been the fungus character. Guess it really grew on me...
I want to work on my reboot, but I don't have time to do it. ;_;
4y195n.png
big image so i posted it as a spoiler
Just a reminder to back your projects up. Do it now! :yamero:

Forum statistics

Threads
111,273
Messages
1,059,817
Members
144,571
Latest member
HangSapa
Top