MV Script Call Help

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMV
What I am trying to do is having a picture act as a closing window for my other pictures, since I am layering multiple pictures to create a window in a way.
For example I have an event that when clicked it will show a picture of my window, over that picture there will be"selectable pictures" and in the corner another picture of an X.
I can make it to where pressing the cancel button exits everything, but I also want to make it to where if i press on the X, it also closes everything, but MV doesn't have a conditional branch for that.
So i figured that with a script it could be possible.

Something like if picture 2 is pressed or touch
Or if show picture 2 is active and location x, y is touched

This way i can then use the erase command under the conditional branch made of the script call.

Hope someone can help me with this.
 

Kuro DCupu

Trust me, I'm a veteran RMer
Veteran
Joined
Jul 6, 2014
Messages
480
Reaction score
1,470
First Language
Indonesia
Primarily Uses
RMMV
There's Galv Screen Button

You can add the close button when showing your picture menu, then make it to treat it as "cancel" button when pressed. Then remove the button afterward.
 
  • Like
Reactions: J-G

J-G

Veteran
Member
Joined
Oct 4, 2019
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMV
Okay i will give it a try, i come back if i can't figure out how to set it up lol

edit:
more of less i figured it out, only issue is the button is partially cut off, not sure if there is an exact size need or if its some coding bug in script.
Also how to make button disappear along with window once the window picture is closed.

Edit. Okay I figured it out. Thank you
This can be closed now
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?

Forum statistics

Threads
107,740
Messages
1,031,766
Members
139,877
Latest member
sv88nhacai1
Top