Draycos Goldaryn
Member
I'm at work right now, so I don't have the ability to look this up for myself in rmxp, so, I'll ask here.
In Spriteset_Map, three viewports are defined by default. The map takes up viewport 1, Show Picture uses viewport 2, I'm guessing message windows take up viewport 3 (correct me if i'm wrong). Also, The viewport.z is set for viewports 2 and 3, with 3 being 5000. I know that the higher the number, the closer to the player it is, thus viewport 1 is behind 2 which is behind 3.
Now, I've seen there are 4 viewports defined in Spriteset_Battler.
I'm guessing these are taken up by (in order from viewport 1-4)
Thank you.
In Spriteset_Map, three viewports are defined by default. The map takes up viewport 1, Show Picture uses viewport 2, I'm guessing message windows take up viewport 3 (correct me if i'm wrong). Also, The viewport.z is set for viewports 2 and 3, with 3 being 5000. I know that the higher the number, the closer to the player it is, thus viewport 1 is behind 2 which is behind 3.
- What I want to know is, without changing the default values for the three viewports, can I create a viewport 4 above viewport 3 and a vieport 5 between viewports 2 and 3?
- And also, is there a maximum number you can assign a viewport.z?
- and can you assign a negative number to a viewport.z?
- Also, is there anything else, by default, that use viewports 1-3 on the map?
- Can you assign two viewports that are right next to eachother (since you can define their x and y) the same viewport.z?
- Is there also a way to cause a window, or picture, to switch viewports in game?
for example, I create a viewport4 with a viewport.z of 5001 (so that it is above viewport 3) and display a window in this viewport. While this window is active, it remains above everything else, but when it becomes deactive, it moves to viewport5 which has a viewport.z of 4999 (thus putting it behind viewport 3 but above viewport 2). When it becomes active again, it moves back to viewport4 and etc, etc...
Would that be possible? a script (which is in my head and in the planning stages) for my game is dependent upon this, If it can't be done, i need to think of another way to do what I need to do.
Would that be possible? a script (which is in my head and in the planning stages) for my game is dependent upon this, If it can't be done, i need to think of another way to do what I need to do.
Now, I've seen there are 4 viewports defined in Spriteset_Battler.
I'm guessing these are taken up by (in order from viewport 1-4)
- the background,
- the status and menu windows,
- the battlers,
- and the animations.
Thank you.