• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Instant movecamera script tutorial

jota_rdk

Spanish hacker [Javi4315]
98
Posts
13
Years
  • What is instant movecamera?


    This type of script serves for make a movecamera instantly.

    It is very useful for to make good scripts. And don't need know how make a simple movecamera with applymovement comand. I explain all you need know for make a instant movecamera script in this tutorial.

    Before continue, I want give special thanks to R!cci.

    And excuse me for my english


    Could you put an example?


    Sure. Here I put an example. Is a youtube video uploaded by me:




    Code:
     [URL="http://www.youtube.com/watch?v=P9aHiNDSdX0 [/CODE"][COLOR=#0066cc]http://www.youtube.com/watch?v=P9aHiNDSdX0 [/COLOR][/URL]


    How I make a instant movecamera script?


    This is the interesting part. First, you must know the commands that we will utilize. These are the next:

    • fadescreen 0xA
    • movesprite 0xA 0xB 0xC
    • Special 0xA
    • writebytetooffset 0xA 0x2025734/2025736
    Now, I will write the script body:

    Code:
    org @start
    [COLOR=darkgreen][script before instant movecamera][/COLOR]
    [COLOR=darkred][instant movecamera 1][/COLOR]
    [COLOR=darkorange][script into instant movecamera][/COLOR]
    [COLOR=indigo][instant movecamera 2][/COLOR]
    [COLOR=blue][script after instant movecamera][/COLOR]
    release
    end

    Why the colours? Because so you will understand better. I will put my script for you see how make a instant movecamera script:

    If you don't know how to use movesprite comand, you should revise this spoiler:
    Spoiler:


    Code:
    org @start
    [COLOR=darkgreen]lock[/COLOR]
    [COLOR=darkgreen]faceplayer[/COLOR]
    [COLOR=darkgreen]msgbox @text1[/COLOR]
    [COLOR=darkgreen]callstd 0x6[/COLOR]
    [COLOR=darkred]fadescreen 0x1 [/COLOR]
    [COLOR=darkred]special 0x113 [COLOR=black](serves to separate the camera of the hero)[/COLOR]
    writebytetooffset 0x12 0x2025734 [COLOR=black](will move camera instantly in the x-axis to her new position)[/COLOR]
    writebytetooffset 0xC 0x2025736 [COLOR=black](will move camera instantly in the y-axis to her new position)[/COLOR]
    special 0x8E [COLOR=black](will update the screen)[/COLOR]
    movesprite 0xFF 0x9 0x4 [COLOR=black](You must move hero to his original position)[/COLOR]
    movesprite 0x1 0xA 0x4 [COLOR=black](You must move all minisprites that appear in the screen to his originals positions)[/COLOR]
    fadescreen 0x0 [/COLOR]
    [COLOR=darkorange]pause 0x40 [COLOR=black](will stop the game during the time that you want)[/COLOR]
    msgbox @text2 [COLOR=black](simple message)[/COLOR]
    callstd 0x6[/COLOR]
    [COLOR=indigo]fadescreen 0x1 [/COLOR]
    [COLOR=indigo]special 0x113 [COLOR=black](You must write this command again)[/COLOR]
    writebytetooffset 0x9 0x2025734 [COLOR=#000000](will move camera instantly in the x-axis to original position)[/COLOR]
    writebytetooffset 0x4 0x2025736 [COLOR=#000000](will move camera instantly in the y-axis to original position)[/COLOR]
    special 0x8E [COLOR=black](will update the screen)[/COLOR]
    movesprite 0xFF 0x9 0x4 [COLOR=black](You must move hero to his original position again)[/COLOR][/COLOR]
    [COLOR=indigo]movesprite 0x1 0xA 0x4 [COLOR=#000000](You must move all minisprites that appear in the screen to his originals positions again)[/COLOR]
    special 0x114 [COLOR=black](Camera will join to hero movement)[/COLOR]
    fadescreen 0x0[/COLOR]
    [COLOR=blue]msgbox @text3[/COLOR]
    [COLOR=blue]callstd 0x6[/COLOR]
    release
    end
     
    [COLOR=#006400]#org @text1[/COLOR]
    [COLOR=#006400]= Excuse me.\nWhere is alex's house?[/COLOR]
     
    [COLOR=#ff8c00]#org @text2[/COLOR]
    [COLOR=#ff8c00]= This is alex's house.[/COLOR]
     
    [COLOR=#0000ff]#org @text3[/COLOR]
    [COLOR=#0000ff]= Ok. Thanks![/COLOR]



    How I use a writebytetooffset comand?


    writebytetooffset 0xA 0x2025734 / 2025736

    Position coordinate
    Simbolize the x-axis
    Simbolize the y-axis

    For example, if you want to move the camera to 0017 (x-axis) and 000C (y-axis) You must put:

    writebytetooffset 0x17 0x2025734 (this is the x-axis)
    writebytetooffset 0xC 0x2025736 (this is the y-axis)
    (you don't forget of special 0x8E comand)


    Tutorial by javi4315 (jota_rdk here xD)
    Special thanks for R!cci

    if you have any doubt tell me.

    I hope you enjoy this tutorial

    Greetings!
     
    Last edited:

    gamesharkhacker

    SupremoHack Entertainment Inc.
    47
    Posts
    14
    Years
  • I inserted this into my Ruby ROM and all i get is "qAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFt
    qAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFtqAFt"

    I've checked over it and it still won't stop "qAFting"...
     

    The Shadow Knight

    Roaming Kanto
    195
    Posts
    16
    Years
    • Seen Jun 26, 2022
    Quick question: Does this work for fire red?

    (Sorry for the bump, I don't think my little addition deserves a thread of it's own.)

    As it is describred in the OP this does not work for FR, mostly because the location where the coördinates are stored changes dynamically. I wrote a little ASM to fix that though:

    Spoiler:

    Usage of the above ASM is as follows:

    Code:
    setvar 0x8002 0xA
    setvar 0x8003 0xB
    callasm 0xLOCATION + 1

    This will move the camera Coördinates to location (A, B).

    Just use the above instead of the writebytetooffset commands in the OP and it will work for Fire Red.
     
    Back
    Top