Trouble with repeating an event

● ARCHIVED · READ-ONLY
Started by Seiena 8 posts View original ↗
  1. My brain is starting to turn to jelly. I didn't want to come bothering again so soon about the same event because I thought I'd fixed it and I hadn't. I'd just fixed the animation.

    So I'm trying to set up an event where the Player character can open a curtain, and if they choose close it again (because it may become a mechanic in a future game. The Curtain opens and closes just fine, but only once. I tried the turn self A off thing and it broke the game and the animation I'd gotten working. Any ideas what I can do?

    I'm sure I'm missing something but I trucked around the forums and google. So I apologize if I missed something, and greatly appreciate the assistance.

    curtain page 1.png

    curtain page 2.png
  2. I have not read an earlier thread about this so if you posted one earlier I would post this there. Now as far it seems you just need to loop it back to begining which isnt too hard. What I do a lot which someone may have something simpler; but I have so when you activate it it turns on switch two and switch one off then reverse if clicked again so turns switch two off and switch one back on. There for its not just going forward but they loop to eachother though I use this to make resetting NPC Monsters for areas so not sure if it work for curtains but it should. Hope this helps
  3. Few things I noticed.


    1: your move routes have a few repeating moves, such as the "turn right, wait 3 frames" which happens twice in the first. Same thing for the "turn left, wait 3 frames" on the second page.


    2: The second page, the move routes aren't set for "Wait for Completion" which means the event will go through the list without waiting for the moves to complete. This means that the player will move down immediately, and Turn A Off will start immediately as well.


    The second thing is important because it messes up your move routes and changes the page before it finishes.


    The first page also sets the curtain to "Through" but the second page is not set to "Through" by default (via the box on the lower left). It also changes the graphic to an open curtain, but the second page's default image is closed. This means that if you leave the map and return, it will be on the second page, the curtain will be closed and it will look as if it's closed when it should actually be open.


    Here's the steps to fix this:


    Page 1: leave as is.


    Page 2: Set to "Through", change graphic to the open curtain.


    Set both move routes to "Wait for Completion"


    Delete the extra moves in the first move route, also delete both "Through" commands.


    Create a new move route after the player moves down to change the curtain to "Through Off".


    If you follow this exactly, then the player will open the curtain and move forward. But when they close it, no matter where they are, they will move down twice. It would be better if you delete both Player move routes so that all it does is open and close the curtain.


    Edit: your method right now is more appropriate than Skot's. Skot, you can actually loop it by using only one switch, unless you're using both switches in different ways for other events.
  4. There are a lot of ways how to do what you want.


    However, one thing you should make sure to get right is that the sequence in both cases is always the same - in your case the player on the first page only moves up once and remains standing on the curtain, while in the second it moves down twice and doesn't stand on the curtain event anymore - this difference requires different handling of through, and that is part of what's moxong up your logic.


    I would start changing the second page, and I would use three set move route commands there - all set to wait for completion like the poster above said.


    1) change the current curtain move route to "wait for completion" and remove the last command "through off".


    2) change the move route player to wait for completion


    3) add a third move route for "this event" that contains only the removed "through off" after the player movement but before the control self switch.


    Then make a similiar sequence on the first page, only with the player moving up twice.
  5. Okay so the event works now (though I've kept the repeating routes because they are the only way the curtain moves smoothly) but now the animation is funky. The curtain closes and then she walks through it. Tested putting her walk movements first, but it removes the curtain graphic till she's done walking and then the curtain comes back to do it's animation.
  6. The curtain probably looks funky because it turns towards her when you interact with it. You need to check the "Direction Fix"box on both pages so it doesn't turn.

    After that, for the curtain move routes, do "Direction Fix Off" first, and at the end "Direction Fix On"

    this will make it so it doesn't turn towards the player when you talk to it, so it'll only turn during the move routes...

    Better if I just show you.

    j3Uzeta.png

    Copy it exactly.

    In this case I didn't use the fourth line where the curtain is completely transparent. This is because then the player wouldn't know where the curtain actually is.

    For this one, you would have to interact with the curtain to get through it. If you want to open and close it without automatically going through it, you would need to modify it.
  7. That fixed it thank you!
  8. 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.