Sonic and Sega Retro Message Board: Sonic CD Style Camera in Sonic 2 - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Sonic CD Style Camera in Sonic 2

#1 User is offline AmazinglyHopeless 

Posted 20 August 2017 - 07:32 PM

  • Posts: 5
  • Joined: 19-August 17
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 User is offline MainMemory 

Posted 20 August 2017 - 09:29 PM

  • Every day's the same old thing... Same place, different day...
  • Posts: 3973
  • Joined: 14-August 09
  • Gender:Not Telling
  • Project:SonLVL
  • Wiki edits:1,339
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 User is offline Caverns 4 

Posted 21 August 2017 - 03:20 PM

  • Posts: 324
  • Joined: 07-December 12
  • Gender:Male
  • Project: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 User is offline flamewing 

Posted 22 August 2017 - 05:49 AM

  • Emerald Hunter
  • Posts: 1113
  • Joined: 11-October 10
  • Gender:Male
  • Location:🇫🇷 France
  • Project:Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
  • Wiki edits:12

View PostCaverns 4, on 21 August 2017 - 03:20 PM, said:

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.

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.
This post has been edited by flamewing: 22 August 2017 - 05:49 AM

#5 User is offline luluco 

Posted 03 September 2017 - 07:59 AM

  • Posts: 17
  • Joined: 09-August 17
  • Gender:Male
  • Location: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.
This post has been edited by luluco: 03 September 2017 - 08:25 AM

#6 User is offline DigitalDuck 

Posted 03 September 2017 - 08:08 AM

  • Arriving four years late.
  • Posts: 4607
  • Joined: 23-June 08
  • Gender:Male
  • Location:Lincs, UK
  • Project:TurBoa, S1RL

View Postluluco, on 03 September 2017 - 07:59 AM, said:

I also have been interesting 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.


Camera code in Sonic 1 is found in DeformLayers, starting at the ScrollHoriz label.

#7 User is offline luluco 

Posted 03 September 2017 - 08:23 AM

  • Posts: 17
  • Joined: 09-August 17
  • Gender:Male
  • Location:Brazil

View PostDigitalDuck, on 03 September 2017 - 08:08 AM, said:

Camera code in Sonic 1 is found in DeformLayers, starting at the ScrollHoriz label.


Thanks man, I'll take a look!

Page 1 of 1
    Locked
    Locked Forum

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users