SHOW PICTURE UNTIL BUTTON PRESSED
Posts
Pages:
1
Yeah so stupid question, but what's the best way to make it show a picture when I use an item and then remove that picture when I press a button.
I got the image to appear when I used an item with a common event in it. It stays there until the erase picture command is called. The problem is that I don't want to just set a delay, I want to let the user decide when he is done looking at picture by pressing x or something.
Not working with conditional branch...
Any ideas?
I got the image to appear when I used an item with a common event in it. It stays there until the erase picture command is called. The problem is that I don't want to just set a delay, I want to let the user decide when he is done looking at picture by pressing x or something.
Not working with conditional branch...
Any ideas?
Um, depends what engine you're using.
In RM2K/3 you'll need a conditional branch to check if 'x' button is pressed. You can assign a button to a variable via 'Key Input Processing'. Then check if the variable is equal to the button.
In VX, on the last page of the Conditional Branch choices there's one for button pressing.
In RM2K/3 you'll need a conditional branch to check if 'x' button is pressed. You can assign a button to a variable via 'Key Input Processing'. Then check if the variable is equal to the button.
In VX, on the last page of the Conditional Branch choices there's one for button pressing.
For 2k3: Just use a "Wait" command, but instead of designating a time, just select the "Wait until key pressed" option. Then erase the picture afterwards.
For VX: Create a Loop, and within that Loop create a Conditional Branch, where the conditions are "If the key is being pressed". Inside that conditional branch, set a "Break Loop" command. This should halt the event processing until a key is pressed. Then erase the picture afterwards.
For VX: Create a Loop, and within that Loop create a Conditional Branch, where the conditions are "If the key is being pressed". Inside that conditional branch, set a "Break Loop" command. This should halt the event processing until a key is pressed. Then erase the picture afterwards.
author=Liberty
Um, depends what engine you're using.
In RM2K/3 you'll need a conditional branch to check if 'x' button is pressed. You can assign a button to a variable via 'Key Input Processing'. Then check if the variable is equal to the button.
In VX, on the last page of the Conditional Branch choices there's one for button pressing.
Using VX. I saw the page with the conditional branch for button pressing but it's not working. Maybe I am doing it incorrectly. I set it to
if
button pressed
then
erase picture
else
blank
Didn't work though.
What I did for something like this was use a blank message window set to transparent. You get the little wait icon, but that's it.
That's because the conditional branch doesn't wait for the key to be pressed. It skips right over it if no button is being held down. This is why you need to nest it within a loop and have the loop break if the key is pressed.
author=narcodis
For 2k3: Just use a "Wait" command, but instead of designating a time, just select the "Wait until key pressed" option. Then erase the picture afterwards.
For VX: Create a Loop, and within that Loop create a Conditional Branch, where the conditions are "If the key is being pressed". Inside that conditional branch, set a "Break Loop" command. This should halt the event processing until a key is pressed. Then erase the picture afterwards.
Still not working. I set the common event page to this but it is just freezing the game. Is this what you meant?
@>Show picture
@>Loop
@>Conditional Branch: The C Button is Being Pressed
@>Break Loop
@>Erase Picture: 1
@>
: Else
@>
: Branch End
@>
: Repeat Above
@>
@Narcodis: I've been trying some labels too. Still no luck.
@Ben_Random: I'm not sure how that would do it. It's good to know but I don't understand how that would trigger an erase picture.
@Ben_Random: I'm not sure how that would do it. It's good to know but I don't understand how that would trigger an erase picture.
Pages:
1

















