• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Camera xse script?

  • 6
    Posts
    5
    Years
    • Seen Jan 21, 2020
    How do I move the camera to another location where the [player] isn't there?

    For example, [player] talk to npc about the on-going robbing on a mart. Then the camera will show the inside of the mart to show what's happening there. Then the camera will move back to the [player].

    Maybe I'm bad at searching but I've wasted all day looking up for script tutorial for this one but to no avail, just the move camera. But that isn't what I'm looking for??

    Thanks.
     
    Last edited:
    How do I move the camera to another location where the [player] isn't there?

    For example, [player] talk to npc about the on-going robbing on a mart. Then the camera will show the inside of the mart to show what's happening there. Then the camera will move back to the [player].

    Maybe I'm bad at searching but I've wasted all day looking up for script tutorial for this one but to no avail, just the move camera. But that isn't what I'm looking??

    Thanks.

    https://www.youtube.com/watch?v=CukAvOWy8pU&list=PLfI5DBI4tNyLBYGNhf1Ee8cgdmMtiilps&index=12
     
    Thank you for the answer but I'm afraid that isn't what I'm looking for.

    What I want to happen is like warp the camera to other location. Let's say the [player] is in Pallet Town, when he talk to a npc there, the camera will shift to the inside of the mart in the Viridian City.

    Well, is this even possible to do in FR version?
     
    Thank you for the answer but I'm afraid that isn't what I'm looking for.

    What I want to happen is like warp the camera to other location. Let's say the [player] is in Pallet Town, when he talk to a npc there, the camera will shift to the inside of the mart in the Viridian City.

    Well, is this even possible to do in FR version?

    Yea, it's possible but pretty specific. It would need a little more advanced scripting. You would need to use the warp(muted) command to warp to the mart and then make the player sprite invisible before the map loads with a type 04 Level script. After that you can script it however you want with a type 02 level script.
     
    Yea, it's possible but pretty specific. It would need a little more advanced scripting. You would need to use the warp(muted) command to warp to the mart and then make the player sprite invisible before the map loads with a type 04 Level script. After that you can script it however you want with a type 02 level script.

    I see! I get it now. I actually thought of the warp but hiding the sprite didn't occur to me. I always believed there's a specific script for that kind of action. Anyway, thank you very much!
     
    Last edited:
    I can't seem to make it work. Obviously, it's not as simple as what I thought...

    I'll post my script in a bit, I really hope somebody can provide me the help I need.

    Here it is.

    Once the [player] talk to the npc below, the camera will shift to the school in Viridian City.
    https://photos.google.com/photo/AF1QipP3Qw1wAX3KE2H3NMKrfuFeUrU5rj0aR_Ct9Xp5

    This is the script:
    #dynamic 0x800ABF

    #org @start
    lock
    faceplayer
    msgbox @talk 0x6
    warpmuted 0x5 0x2 0xFF 0x5 0x4
    release
    end

    #org @talk
    = Let's warp the camera to the\nVIRIDIAN CITY's school!

    Then this is the level script upon entering the map 5.2 which is the school in Viridian City. I also added some scene before shifting the camera back to the Pallet Town.

    #dynamic 0x8009D9

    #org @start
    lock
    hidesprite 0xFF
    msgbox @question 0x6
    pause 0x20
    msgbox @answer 0x6
    warpmuted 0x3 0x0 0xFF 0x2 0x3
    setvar 0x4889 0x1
    release
    end

    #org @question
    = [red_fr]Teacher, what is a POKEBALL?

    #org @answer
    = [green_fr]It's an item use to catch a\nPOKEMON.\pYou throw it to a POKEMON you\nencounter in the wild if you want\lto capture them.

    What happens is upon entering the school, the player sprite would be visible for a brief moment in the middle of the map then it would turn to this...
    https://photos.google.com/photo/AF1QipNUTaObUcaKR2_oEc6hnCZR-o2zRI393erbaMcs

    Anyone can help me?
     
    Last edited by a moderator:
    Here it is.

    Once the [player] talk to the npc below, the camera will shift to the school in Viridian City.
    https://photos.google.com/photo/AF1QipP3Qw1wAX3KE2H3NMKrfuFeUrU5rj0aR_Ct9Xp5

    This is the script:


    Then this is the level script upon entering the map 5.2 which is the school in Viridian City. I also added some scene before shifting the camera back to the Pallet Town.



    What happens is upon entering the school, the player sprite would be visible for a brief moment in the middle of the map then it would turn to this...
    https://photos.google.com/photo/AF1QipNUTaObUcaKR2_oEc6hnCZR-o2zRI393erbaMcs

    Anyone can help me?

    You'll need to make a type 04 level script to hide the player's sprite first. A type 04 level script runs before the screen is loaded visually. Put in a script like hidesprite 0xFF (not sure if it works in a type 04 level script) or:
    applymovement 0xFF @movement1

    @movement1
    #raw 0x60
    #raw 0xFE

    That should work.
     
    You'll need to make a type 04 level script to hide the player's sprite first. A type 04 level script runs before the screen is loaded visually. Put in a script like hidesprite 0xFF (not sure if it works in a type 04 level script) or:
    applymovement 0xFF @movement1

    @movement1
    #raw 0x60
    #raw 0xFE

    That should work.

    Thank you!! It really worked!

    Now my problem is that how do I do the script for the convo of the student and teacher and warping the camera back to Pallet Town.

    I tried using the 02 and 03 level script but after talking with the npc in Pallet Town I got black screen.
     
    Last edited:
    Thank you!! It really worked!

    Now my problem is that how do I do the script for the convo of the student and teacher and warping the camera back to Pallet Town.

    I tried using the 02 and 03 level script but after talking with the npc in Pallet Town I got black screen.

    I tried it again and it work. I have no idea how it didn't the first time though. Anyway thank you again! You're a great help!
     
    Back
    Top