Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Change Battle to Side View In Game

Status
Not open for further replies.

Trumully

Cyborg Kiwi
Hey guys!
In my game, for the tutorial, the characters will not be in side view battle.
But once that is over, I want to change it to side view.
Is there a way of doing this? Am I overlooking a command?
Please! Help!
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I have not seen anything in the editor or event commands to do this. Though it sounds like a simple enough to make it a script. @eivl may be able to help you with this. If I figure anything out I will come back, im curious to have a look at this issue lol.

I have found this in the scripts if ($gameSystem.isSideView()) { . Seeing as it's a global it may be possible to make a conditonal branch using this. so something like
ConditonalBranch: @gameSystem.isSideView()
then do this
else
do this

I have not tested this, I will though soon, sounds like a fun thing to solve, I like these kind of things lol
 
Last edited:

Trumully

Cyborg Kiwi
I have not seen anything in the editor or event commands to do this. Though it sounds like a simple enough to make it a script. @eivl may be able to help you with this. If I figure anything out I will come back, im curious to have a look at this issue lol.

I have found this in the scripts if ($gameSystem.isSideView()) { . Seeing as it's a global it may be possible to make a conditonal branch using this. so something like
ConditonalBranch: @gameSystem.isSideView()
then do this
else
do this

I have not tested this, I will though soon, sounds like a fun thing to solve, I like these kind of things lol
I will try this after work. In the mean time, my question won't be answered... Yet.
 

eivl

Local Hero
Xy$
0.00
Should not be any problem.

Settings are stored in a system.json file, and the variable is called $dataSystem
I have no idea what the function to change this is called, but i will do some digging around.

gameSystem.isSideView() is just a check for the setting, so that should not do anything, but my idea is change the actual setting file at a sertain point, and leave it there.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
Should not be any problem.

Settings are stored in a system.json file, and the variable is called $dataSystem
I have no idea what the function to change this is called, but i will do some digging around.

gameSystem.isSideView() is just a check for the setting, so that should not do anything, but my idea is change the actual setting file at a sertain point, and leave it there.
I'm excited to see what you dig up, I will also take a look in that .json file myself just to see all the madness >:D
 

Trumully

Cyborg Kiwi
Should not be any problem.

Settings are stored in a system.json file, and the variable is called $dataSystem
I have no idea what the function to change this is called, but i will do some digging around.

gameSystem.isSideView() is just a check for the setting, so that should not do anything, but my idea is change the actual setting file at a sertain point, and leave it there.
Cheers, eivl! Your the best! :P
 

eivl

Local Hero
Xy$
0.00
So the best way i found is to call a script from an event.
In your Tutorial event call this
Code:
Game_System.prototype.isSideView = function() {return false;};
This code overrides the settings for SideView in memory. When you are done you set it to sideview with this script call
Code:
Game_System.prototype.isSideView = function() {return true;};
There are some limitations.
The player must not be able to restart the game, since it will read from the settings file and reset the sideview override.
If you want players to save you need to call an event with this script before they enter combat the first time.

Let me know if this works or not for you!
I can write it as a plugin that saves the state of the sideview to the setting file, but as long as you pay attension to the limitation you should be fine!
 

Trumully

Cyborg Kiwi
So the best way i found is to call a script from an event.
In your Tutorial event call this
Code:
Game_System.prototype.isSideView = function() {return false;};
This code overrides the settings for SideView in memory. When you are done you set it to sideview with this script call
Code:
Game_System.prototype.isSideView = function() {return true;};
There are some limitations.
The player must not be able to restart the game, since it will read from the settings file and reset the sideview override.
If you want players to save you need to call an event with this script before they enter combat the first time.

Let me know if this works or not for you!
I can write it as a plugin that saves the state of the sideview to the setting file, but as long as you pay attension to the limitation you should be fine!
Yay! Cheers, eivil!
 

eivl

Local Hero
Xy$
0.00
Great! but your file has a bug in it. you need to have the script in the no choice as well, and you to not need two of them in the yes choice!
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I leave for 6 or so hours and come back and bam, problem solved. Awsome this will be very useful to remember in the future.
 

eivl

Local Hero
Xy$
0.00
This can be done to all aspect of the game, problem is if you need to save that information it must be handled in a slightly different way!
 
Status
Not open for further replies.
Top