Sonic CD Style Camera in Sonic 2

Discussion in 'Engineering & Reverse Engineering' started by AmazinglyHopeless, Aug 21, 2017.

  1. AmazinglyHopeless

    AmazinglyHopeless

    Member
    5
    0
    0
    I've seen Sonic CD like-camera behaviour for sonic 1, so i assume this is possible for sonic 2? There's alot of similarities between Sonic 1 and 2, so I can't imagine it being that hard.
    I've had veeery low experience with ASM, so if this is possible, can someone walk me through it? It would be really appreciated.
     
  2. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,435
    75
    28
    SonLVL
    No, Sonic 2 is so completely different from Sonic 1 that anything you can do in Sonic 1 is completely impossible to duplicate in Sonic 2.[/sarcasm]

    What you have to do, is study both games, locate the corresponding code for each part, and modify the relevant parts of Sonic 2 accordingly.
     
  3. Caverns 4

    Caverns 4

    Member
    342
    0
    16
    Sanik Quest: Journey To The Right
    The biggest difference in Sonic 2, as far as the camera is concerned, is the existence of 2-player support. Whatever changes you make to the camera for Sonic, you'll probably also need to do for Tails.
     
  4. flamewing

    flamewing

    Emerald Hunter Tech Member
    1,138
    0
    16
    France
    Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
    Actually, the camera code is done in a player-independent way; player-specific data is accessed through address registers pointing to player SST or camera position, so you only have to write it once and it will work for both.

    The issue is doing a good extended camera: the spindash camera locking mechanic has to be disabled (or changed), and making it smooth enough when going through loops and half pipes.
     
  5. luluco

    luluco

    Member
    17
    0
    0
    Brazil
    I also have been interested in replicating the CD camera, but in Sonic 1, but I have no idea where to start.
    I've tried changing the horizontal offset address but it didn't work, so I assume there's a specific region in the code that handles the camera.

    In fact my dream is to have the camera always ahead of Sonic in whatever velocity he is (obviously within a range).
    So if he's moving up a hill to the right, the camera shifts up-right. I think that'd help visibility significantly.
     
  6. DigitalDuck

    DigitalDuck

    Arriving four years late. Member
    4,894
    74
    28
    Lincs, UK
    TurBoa, S1RL
    Camera code in Sonic 1 is found in DeformLayers, starting at the ScrollHoriz label.
     
  7. luluco

    luluco

    Member
    17
    0
    0
    Brazil
    Thanks man, I'll take a look!