Camera Movement Script?

Discussion in 'RGSS3 Script Requests' started by Momochy, Jul 7, 2019.

Thread Status:
Not open for further replies.
  1. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I'm developing a game that starts off with the main character riding a train, & what I'm trying to do is add some shaky, continuous, left to right camera movement to make it appear as if the train is actually moving.

    I'm a noob, so what I first tried doing is to create the movement using the "Scroll Map" function, but it didn't give me the effect I was looking for, & my sprite couldn't move while the effect was turned on anyway.

    Does anyone know of a script that might have what I'm looking for? I'd really appreciate it!
     
    #1
  2. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    203
    Likes Received:
    670
    First Language:
    English
    Primarily Uses:
    N/A
    #2
  3. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,510
    Likes Received:
    322
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Both are for MV
     
    #3
  4. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    203
    Likes Received:
    670
    First Language:
    English
    Primarily Uses:
    N/A
    #4
  5. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I did what you suggested & tried using the "Shake Screen" option, & it worked perfectly! Thank you so much for that! But is there a way to get it to loop during dialogue? The screen shake works fine up until I start interacting with characters, & stops while the dialogue is on screen. It starts looping again once the dialogue is over, but I'd like to keep it continuous if possible.
     
    #5
  6. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,164
    Likes Received:
    10,317
    First Language:
    English
    Primarily Uses:
    RMVXA
    Did you set it to a parallel process? Make sure that you put a wait in there somewhere so that you don't risk lag.
     
    #6
  7. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I did, but it's possible that I probably made a mistake somewhere as I'm still really new to using RPG Maker.
     
    #7
  8. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    203
    Likes Received:
    670
    First Language:
    English
    Primarily Uses:
    N/A
    It works for me.
    I have one event on parallel process, it uses two commands.
    --Shake Screen 60 frames WAIT FOR COMPLETION IS UNCHECKED
    --Wait 60 frames

    The other is a character who speaks to you when you activate her with the player. The screen shakes the whole time for me, including when I'm walking around or when the dialogue is showing.
     
    Last edited: Jul 7, 2019
    #8
  9. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    I tried what you said, but it didn't work for me. It still stops when the dialogue is on screen.
    I really appreciate you trying to help though! <3
     
    #9
  10. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    203
    Likes Received:
    670
    First Language:
    English
    Primarily Uses:
    N/A
    You know what, my screen shake was set a longer than I allowed it to wait during the test.
    Here's what I recommend, I tested this just now.

    Continue to have the separate parallel process shaking the screen.

    On the character event when you're doing dialogue, you'll need to limit the amount of time the text box is open manually with the text shorthand codes.
    Before each Text Box, in that same event call another screen shake that will run for a bit longer than the wait codes in the text that follows
    shakeExample.png

    This does limit the the player's ability to choose when to progress the Text/close the text box, but without doing this you're options are a bit limited.
    The example above does, however, allow the screen to continue shaking behind the text while it's active.
     
    #10
  11. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    Oh my gosh, THANK YOU! It worked perfectly!
     
    #11
  12. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    203
    Likes Received:
    670
    First Language:
    English
    Primarily Uses:
    N/A
    I'm glad it's working, sorry I messed up the first two times. I should have let my test run longer, and I DEFINITELY should have noticed this was in ACE and not MV before you told me ><
     
    #12
  13. Momochy

    Momochy Villager Member

    Messages:
    22
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMVXA
    Oh no, don't worry about it! We all make mistakes. I really appreciate that you took time out of your day to help me. Thanks again! <3
     
    #13
  14. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,602
    Likes Received:
    7,519
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    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.

     
    #14
Thread Status:
Not open for further replies.

Share This Page