Hello, I'm spanish and I'm new to RPG Maker, I'm trying to add an event where the refrigerator opens and then closes, but I have not managed to get it to work, could someone help me with it? I post the following screenshots.
How do I open/close the refrigerator?
RPG Maker MZ SupportYou switch normal switch (#0001) to on, but then on page 2 you've set as condition self switch A instead of switch 0001. Why? On page 1 change "switch 0001 = on" to "selswitch A = on" and should work just fine.
you're using a normal switch (interruptor 1) you should use a self-switch for various reasons, self switches are contained in the event not globals, normal switches have a hard cap limit.
I see, thank you very much! It already works, but it only does it once, when the character does the same thing again, the refrigerator opens and closes automatically,
Could there be a way to make it open and close only when the character selects it?
Could there be a way to make it open and close only when the character selects it?
You don't have Direction Fix checked on the second page, so that's probably causing the sprite to move around when the actor triggers it.
If that doesn't help, you'd need to post what the fridge spritesheet looks like.
If that doesn't help, you'd need to post what the fridge spritesheet looks like.
Are you switching off the self-switch on page 2? In your screenshot there isn't, so that may be the problem. After the first time, you are only seeing the events of the second page, never to revert to the first page.
Also, the order of the frames seems to be incorrect on the second page. Since you have LEFT RIGHT UP on your first page, I would expect RIGHT LEFT DOWN on the second page. That's why it looks like it's opening and then closing.
Thank you very much!
It was that, because it wasn't working, on the second page it had "Turn left", "Turn right" instead of "Turn right", "Turn left". And "Direction Fix" was ticked on the second page.
It was that, because it wasn't working, on the second page it had "Turn left", "Turn right" instead of "Turn right", "Turn left". And "Direction Fix" was ticked on the second page.This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-open-close-the-refrigerator.167168/