About Sonic's speed.

Discussion in 'Discussion & Q&A' started by GrandEggSSRG, May 28, 2018.

Tags:
Thread Status:
Not open for further replies.
  1. GrandEggSSRG

    GrandEggSSRG Newcomer Trialist

    Joined:
    May 26, 2018
    Messages:
    2
    Location:
    United States of America
    Is there any possible way to change Sonic's speed in Sonic 1? I'm trying to make a simple test hack in which Sonic being slow is the entire gimmick, but is this even possible (I'm using the July 2010 disassembly)? If it is, please respond.
     
  2. Lil-G

    Lil-G Friendly Local Noob Maintenance

    Joined:
    Oct 21, 2014
    Messages:
    8
    Location:
    olathe, KS
  3. Clownacy

    Clownacy UP - ON - CPU Staff

    Joined:
    Aug 15, 2014
    Messages:
    819
    Location:
    Englandland
    Natsumi and Pacguy like this.
  4. Pacguy

    Pacguy :3 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,092
    Location:
    Twinleaf Town
    How much assembly coding do you know? If you have no experience, perhaps check out MarkeyJesters' guide on how to code in assembly.

    If you are prepared to add/edit code, check out this page; it's a great reference for variables used by Sonic 1. Of particular note for your purposes is "Sonic's top speed", "Sonic's acceleration", and "Sonic's deceleration".
     
  5. GrandEggSSRG

    GrandEggSSRG Newcomer Trialist

    Joined:
    May 26, 2018
    Messages:
    2
    Location:
    United States of America
    I barely know how to code, so I might as well read MarkeyJesters' guide.
    Thanks!
     
  6. Misinko

    Misinko If you need to shoot me, I won't complain! Staff

    Joined:
    Apr 30, 2013
    Messages:
    631
    Location:
    Ohio
    Let's think about this for a second, without ever touching a line of code, and assuming you know literally nothing about how to program. Sonic himself has to move, and has a natural limit to what his speed can be, right? Logically speaking, this would have to be implemented somewhere, meaning that Sonic's top speed would have a hard-coded value somewhere in said code. So that would mean you likewise could make that value higher or lower depending on what you wanted to do. Furthermore, the acceleration, top speed, and deceleration would most likely only be declared once for ease of use, and because it'd be unnecessary to do so, so you wouldn't need to change any other instance of the value.

    How to do so is another matter that would best be asked in the Basic Q&A topic, as Clownacy already posted. And since this question has already been answered well and beyond what was asked by Pacguy, I'm locking this topic.
     
    Calvin, Roxurface and Clownacy like this.
Thread Status:
Not open for further replies.