Animated picture through parallel process doesn't restart upon reentering the room.

● ARCHIVED · READ-ONLY
Started by Pocketmole 4 posts View original ↗
  1. This is my first post here. I spent a while trying to figure out a solution on my own but I'm stumped and decided it was time for me to call upon the experts for assistance. First off I'll just say that I've been using RPG Maker for less than 2 weeks and my event creation and scripting skills are still quite weak. If there is a better way to attempt what I'm trying to do I am all ears. For now I am using a method I found on another forum, where the person explained how to animate a scene using a loop that runs on a parallel process. (What I'm trying to do is create an overlay on my map that the player can walk under. It needs to be animated because the player is walking under a structure that contains moving water.)
     
    It seemed to work ok for a while but somewhere along the way I noticed that whenever I would leave a room and reenter it, the process wasn't starting back up. I took a few snaps of the events I've made and include a brief explanation of them in the image below. Any help would be much appreciated! :)

    Spoiler
  2. Parallel processes start running the moment the map is set-up, so it's probable that it starts running the moment you used that Transfer player on event C... and at that moment the switch isn't still turned on so you end up with the erase event...


    so try putting the Switch ON before the transfer command on event C and see if that solves it
  3. That didn't seem to fix the problem. I took some screenshots to try and show what is happening. I set the starting position in the room, so by default the Enter Temple switch isn't on (it would normally be triggered when walking through a door). If I enter the cavern and exit again, the overlay seems to work fine (shown working properly in the top screenshot below). If I zone back into the cave the overlay image stays on the screen for half a second before the cave's own overlay image replaces it (shown in the second screenshot). The third shot shows when the process stops running and I'm able to walk on top of the walls. Whenever I use one of my other exits out of the room it breaks (even though it's set up the same way as the cave).

    Spoiler
    Edit: Problem fixed! I had my boyfriend (who is a programmer) look over my code and he noticed an issue with my loop. The reason it felt so random when it would break was because if I happened to exit the room when the animation variable was on 3, it would have time to cycle over to 4 before I zoned out. That would break the entire process upon reentering, so I now have a control variable before my loop to reset everything back to 0. Work like a charm now. :)

    Thanks for the help, Engr. Adiktuzmiko!
  4. 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.