Recent Posts

Pages: [1] 2 3 ... 10
1
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by KK20 on October 17, 2018, 04:46:59 AM »
Okay I don't know why your demo has it set to 255 then
Code: [Select]
self.opacity = 255 if $scene.instance_variable_get(:@menu_transparency)
And yes, setting it to false and putting the Wait 1 frame should fix your problem. What you'll get as a background is just a "snapshot" of the map though. Nothing will animate or move around. If you still want things to move around, then you're going to need to put some safety checks in your events.

Make a conditional branch, Tab 4->Script, put
Code: [Select]
!$scene.is_a?(Scene_Map)uncheck the box for when conditions do not apply, OK.
Inside the branch, put an Exit Event Processing.

(alternatively, use a Script event command and put inside it
Code: [Select]
$scene.is_a?(Scene_Map)It's not super obvious what it's doing but it's an option if you like one-liners)

This way, when the player is in the Menu, the events won't start until they exit out of it. Yes it's more work but there's literally nothing else that can be done script-wise.
2
Script Troubleshooting / Re: [RMXP][RESOLVED]Help with Transparent menu script
« Last post by jayje on October 17, 2018, 04:35:27 AM »
I was wanting the just show the menu without the weird black background, if i could. Also, if I were to set the Puase to false would that fix the "bug"?

EDIT: Yes That Fixed It. THANKS FOR POINTING THAT OUT.

3
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by KK20 on October 17, 2018, 04:27:31 AM »
Taking a step back here.
What exactly are you trying to achieve? Maybe you're using the wrong script for the job. The script is called "Translucent Menu" but you changed the opacity to 255 (i.e. no longer translucent). The whole point of this script is to be able to see the map behind the menu windows.

The "bug" you're experiencing is because of No_Pause_Menu being true. It causes the event interpreter to keep running while the player is in the menu. Upon changing to Scene_Item, the Parallel Process fires its event to set Variable 2 = Variable 1, and then does the conditional branch check. It pauses once it reaches the Show Text command, waiting for the player to exit out of the menu. If you use the potion, variable 1 does get changed, but the parallel process has already fired past the conditional branch check, thus it kicks you back into Scene_Item again.
4
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by jayje on October 17, 2018, 03:53:49 AM »
Maybe I mispoke. What I'm trying to do is have the flash happen once the variable is changed. I tried what you told me and the same thing happened. When I removed the script the Flash occured once the variable changed(which was automatic).
5
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by KK20 on October 17, 2018, 03:34:22 AM »
The same effect happens whether the script is there or not. Drago's script has a parameter to allow the map to still update normally while the menu is open. This results in the screen flash occurring when the item scene is opened a second time (after using the potion).

What's actually going on is the order of events running. The parallel process map event is executing first BEFORE the item's common event executes. Throw in a Wait for 1 frame at the top of the parallel process to fix that.
6
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by jayje on October 16, 2018, 11:02:19 PM »
I can give you a google drive link. https://drive.google.com/drive/folders/19wpA6hy8Grw8r2tkTCh7GSG1LYdiPlk9?usp=sharing. You'll notice that when you start you're asked to use an item. When you heal with potion a variable (VAR1) is supposed to be increased by 1. But the script pauses this for some reason and then lets it update.

Thanks for looking.

7
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by KK20 on October 16, 2018, 09:53:36 PM »
I'm not noticing anything. Can you reproduce in a clean project and upload it?
8
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by jayje on October 16, 2018, 08:28:11 PM »
Yes these are variables that you use in the regular events menu. I've tested it using a cond. branch to see if the variable changes or not. When the variable is "0", do one thing, but if it isn't, make a screen flash and play a sound. I've tried it with and without the script and noticed there was a delay.
9
Script Troubleshooting / Re: [RMXP]Help with Transparent menu script
« Last post by KK20 on October 16, 2018, 08:19:23 PM »
How are you testing this? What made you realize there was a delay? And the variables you're talking about are the Game_Variables you can manipulate through event commands right?
10
Script Troubleshooting / [RMXP]Help with Transparent menu script
« Last post by jayje on October 16, 2018, 07:44:44 PM »
Hi gang!  :)

I'm using LittleDrago's Transparent Menu script, but I have a problem :^_^\':. It seems the script interferes with variable manipulation. By that, I mean it delayed the changing of a variable's value by a few frames. Usually this wouldn't be a problem, but it's slowing down a vital mechanic of my game, which will affect player's enjoyment.

Here's the script:

(click to show/hide)

Any fixes welcomed. Thanks for your help.
Pages: [1] 2 3 ... 10