citruskoala

Villager
Member
Joined
Jan 3, 2019
Messages
14
Reaction score
1
First Language
English
Primarily Uses
RMXP
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.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
351
Reaction score
136
First Language
English
Primarily Uses
RMXP
Here's an example of how you do it:
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.'
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.
 

citruskoala

Villager
Member
Joined
Jan 3, 2019
Messages
14
Reaction score
1
First Language
English
Primarily Uses
RMXP
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?
 

DerVVulfman

Resident Werewolf
Veteran
Joined
Jun 26, 2012
Messages
315
Reaction score
155
First Language
English
Primarily Uses
RMXP
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. ^_-
 

Latest Threads

Latest Posts

Latest Profile Posts

I finished setting up my new desk and apparently she thinks this is where she goes now.

20210411_082331.jpg
not me baking a pie because i was inspired by celeste
Doing RPG Maker News for 10th April, 2021. :LZScheeze: (Improving on the thumbnails, by using assets from the day's news.)
Just discovering the forum.
Since Final Fantasy VII has been trending today, decided to make a series of my favorite bars in the OG game! Check it out:

Forum statistics

Threads
110,296
Messages
1,052,060
Members
143,327
Latest member
venxarmy
Top