What are viewports and how can I make use of them while creating custom menus ?
RGSS3 What are viewports ?
Learning Ruby and RGSSxA viewport is basically just setting aside a defined region of the screen where you're saying "Okay scripts, you can draw stuff on this."
The battle scene, for example, has a viewport for the main battle graphics, a viewport for the command windows, and a viewport for weather effects and the like. Essentially it's defining drawable areas that can't interfere with each other: the area of the main battle graphic viewport means it's impossible for the background to overlap the commands, no matter what coordinate you try to draw them at.
The battle scene, for example, has a viewport for the main battle graphics, a viewport for the command windows, and a viewport for weather effects and the like. Essentially it's defining drawable areas that can't interfere with each other: the area of the main battle graphic viewport means it's impossible for the background to overlap the commands, no matter what coordinate you try to draw them at.
Original thread: https://forums.rpgmakerweb.com/threads/rgss3-what-are-viewports.84011/