This topic is to teach people some nifty Tips and Tricks that helps speed up development in a Quality of Life kind of way. You can add your own as well. I'll start with a few examples.
Discussion Thread
Saving Memory A
Saving Memory B
How to Setup Teleport/Transfer Locations with just One Event
My game runs at 120FPS! (Works only in RMMV 1.6.1)
Disable Window Resizing
Add the propery resizable in package.json.
Discussion Thread
Saving Memory A
Do you have too many facesets and preloading too much into memory and sometimes they still get delayed? You can stack them like this and still be usable in the editor. Just try to keep it under the height of 1024 to avoid loading issues:
Saving Memory B
How to Setup Teleport/Transfer Locations with just One Event
Normally, you copy and paste numerous events that teleport to different locations or use a parallel process to check regions to know when and where to teleport/transfer your player. Here's a more effective way to do it:
- Use a Plugin that can modify Event Hitboxes. Event Hitbox Resize by @Yanfly, Big Events by @Shaz or Orange Event Hitboxes by @Hudell will do the trick.
- Create a single event and give it the event notetag property based on which Plugin you are using. If you have a map with 5 tiles long to teleport to another location, then give your event either:
Shaz's Plugin:
Hudell's Plugin:
- Grab the x,y based of the tiles you are interested in.
- Add a conditional branch inside that event using the Script Function. We'll be using the following Script Call:
It should end up looking like this:
This tutorial doesn't just apply to Teleport/Transfer. It has multiple uses depending on your needs!
- Use a Plugin that can modify Event Hitboxes. Event Hitbox Resize by @Yanfly, Big Events by @Shaz or Orange Event Hitboxes by @Hudell will do the trick.
- Create a single event and give it the event notetag property based on which Plugin you are using. If you have a map with 5 tiles long to teleport to another location, then give your event either:
Shaz's Plugin:
Code:
<bigEvent: 5x1>
Code:
<hitboxWidth:5>
- Grab the x,y based of the tiles you are interested in.
- Add a conditional branch inside that event using the Script Function. We'll be using the following Script Call:
Code:
($gamePlayer.pos(x, y))
It should end up looking like this:
This tutorial doesn't just apply to Teleport/Transfer. It has multiple uses depending on your needs!
My game runs at 120FPS! (Works only in RMMV 1.6.1)
Go and open your project folder/package.json
Make it look like this:
Make it look like this:
Code:
{
"name": "",
"main": "index.html",
"js-flags": "--expose-gc ",
"window": {
"title": "",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "icon/icon.png"
},
"chromium-args": "--limit-fps=60"
}
Disable Window Resizing
Add the propery resizable in package.json.
Code:
{
"name": "",
"main": "index.html",
"js-flags": "--expose-gc ",
"window": {
"title": "",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "icon/icon.png",
"resizable": false
}
}