Is it possible to make a map smaller than 20x15 in rpg maker xp? I am trying to make a gameboy styled game and i have lowered the resolution to 160 144, and i want the map size to be 10x9, or, if there is a script to make it so a map only scrolls every 10 tiles on the x axis and 9 on the y.
Minumum Map size
RPG Maker XP SupportHere's an example of how you do it:
Throw this script above Main and it will resize your second map to 10x9. The editor will still say 20x15, so be sure to close and reopen your project. Now it will say 10x9 (but don't try to change anything in the Map Properties as you will be prompted to change the map size). On the map editor, it will still appear as 20x15, but everything beyond 10x9 is ignored in-game. Simply remove the above script and see for yourself.
Granted, if you want to change ALL of your maps to this size, then I can whip up a loop for you so you don't have to manually run the above script for each file.
Code:
map_data = Marshal.load(File.open('Data/Map002.rxdata'))
map_data.width = 10
map_data.height = 9
file = File.open('Data/Map002.rxdata', 'wb')
Marshal.dump(map_data, file)
file.close
p 'Reduced the size! Please reopen your project.'
Granted, if you want to change ALL of your maps to this size, then I can whip up a loop for you so you don't have to manually run the above script for each file.
Thank you, a loop would be great if it doesn't cause you much trouble to create. Also, do you have any advice on learning rubyscript if you have basically no programming experience?
Well, off topic. But....
Make a separate project... tear scripts apart and test things... see what you screwed up one piece at a time. Learn from what you had done. Do small things. And start with the Window Menu sections so you can actually see changes you did more easily. Construction through destruction.
I had no manual on Rubyscripting, so that's what I did. ^_-
Make a separate project... tear scripts apart and test things... see what you screwed up one piece at a time. Learn from what you had done. Do small things. And start with the Window Menu sections so you can actually see changes you did more easily. Construction through destruction.
I had no manual on Rubyscripting, so that's what I did. ^_-
Original thread: https://forums.rpgmakerweb.com/threads/minumum-map-size.108515/