Animation problem - need help animating a closet opening

So I'm having trouble with an event that's going to create a door to the next area in my game.


I want the character to read a note and then pick it up, which will cause the note to disappear and a closet in her bedroom to turn into a door that has two frames of animation that I want to repeat forever.


I also want the character to have free movement after the event and approach the door, prompting a request that asks the player if they wish to enter.


Whenever I set it up so that when the character reads the note and either increases a variable or activates a switch, the event runs and the closet disappears completely after executing the 'Move Route' command I used to animate the closet, regardless if I tell it to repeat or use a loop.


Could someone help me with my technical issues?


Many thanks,


DarkBooDev

problem 1.png

problem 2.png

problem 3.png
For the door, don't use conditional branches - make that event two pages, with the cabinet pictre on the first and the door picture on the second page and use the page conditions on the second page for the switch, not a conditional branch.


The move commands only animate if you have a sprite that contains that animation as part of the directional change (like the default doors), your sprite doesn't contain those additional pictures from what I can see.
Two things I think you should try are to switch the "Move Left" and "Move Down" to simply "Turn Left" and "Turn Down". Also, I think the down may be wrong, switch it to "Up" instead. Besides the graphic disappearing was there something else you needed?
You're going to need to redo parts of most of your events, so let's get started- 


First, on the note, you're going to need to make TWO event pages.


The first should look like the first image, and the second page should be empty, with the settings from the second image.


note-and-door-1.png
note-and-door-2.png



Now, the door!


The first page of your door event should have the closed door graphic and nothing else. It should do absolutely nothing when interacted with.


The next page should be empty as far as events go and the settings should be like this. The graphic is different of course - you will need to set this page to use the graphic of the open door. You will need to edit that graphic so that all the frames go on one row - so it will be the small sparkle, then the big sparkle, then the small one again, on ONE ROW of the event graphic. You may also want to make the entire charactersheet for the door repeats of that row, or you could just check "direction fix".


note-and-door-3.png



The reason it is disappearing now is likely because your event graphic is set up wrong. If you need any further help just let me know what your trouble is and I will try my best!
Thank you all very much! It works perfectly now! I'll be sure to use new event pages in the future.



Just one last thing: when exactly would using conditional branches be useful for me in my game (I have a moral choice system that alters game flow depending on choices made, don't need specifics, just overall where would it be a good choice to use conditional branches) ?


Like say I have a counter of enemies killed, enemies saved, enemies captured, whatever, and if the counters were a certain number or higher they'd trigger a certain series of events or warp the player to a different map. Would that call for conditional branches?
I'm glad you got it working!! 😀


I believe that would call for conditional branches. Depending on how you want to do it you might want to use common events that run in the background and consistently check the variable or whatever - but that's only if you want it to be checking always for the variable to be hit.
You use page conditions if you want to change something that is associated with the event page - like the graphic in this case, or a setting for the event.


Otherwise the conditional branches are the way to go - perhaps with the exception that you might use page conditions if you have too many conditional branches in a single page, but that would only happen in very complex events or large lists.

Original thread: https://forums.rpgmakerweb.com/threads/animation-problem-need-help-animating-a-closet-opening.60526/