When you travel across a big map, the game map begins to scroll when the player reaches the center of the screen.
I want the scrolling to begin at (ScreenWidth / 3) instead of (ScreenWidth / 2) , how can I change this?
EDIT
Okay, I figured it out. Here is how:
You can change the above code to change the screen center. You can change them to:
I want the scrolling to begin at (ScreenWidth / 3) instead of (ScreenWidth / 2) , how can I change this?
EDIT
Okay, I figured it out. Here is how:
Code:
//rpg_objects.js
Game_Player.prototype.centerX = function() {
return (Graphics.width / $gameMap.tileWidth() - 1) / 2.0;
};
Game_Player.prototype.centerY = function() {
return (Graphics.height / $gameMap.tileHeight() - 1) / 2.0;
};
You can change the above code to change the screen center. You can change them to:
Code:
//rpg_objects.js
Game_Player.prototype.centerX = function() {
// move the screen center to the left by a small bit
return (Graphics.width / $gameMap.tileWidth() - 1) / 2.0 - 5;
};
Game_Player.prototype.centerY = function() {
// move the screen center up by a small bit
return (Graphics.height / $gameMap.tileHeight() - 1) / 2.0 - 5;
};