don't click here

Basic Questions & Answers thread

Discussion in 'Engineering & Reverse Engineering' started by Tweaker, May 29, 2008.

  1. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,651
    218
    43
    SonLVL
    Considering that the files are only posted in the Tech Lounge, you're probably right.
     
  2. Hanoch

    Hanoch

    Also known as TheKnock, Birashot Member
    491
    0
    0
    Israel
    everything
    Someone once told me that Cinossu released a guide on retrohack how to add a splash screen, but then retrohack died along with that guide.
     
  3. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    Various questions for Sonic 1 animations.

    1. How do I change what sprites the game loads for the different rotations? I can't find this in the animation script.
    2. How do I change the speed an animation plays at?
    3. For some reason my normal standing frame is using the second frame of the waiting animation, but I can't find anywhere in the animation script I could have fucked up Sonic's first frame because I can't find it on there, unless the standing frame is under wait for some reason.
     
  4. Animemaster

    Animemaster

    Prison bitch! Member
    346
    0
    0
    UK
    Sonic 1 Revelation
    <!--quoteo(post=436024:date=Apr 2 2010, 10:58 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 2 2010, 10:58 AM) <a href="index.php?act=findpost&pid=436024">[​IMG]</a></div><div class='quotemain'><!--quotec-->Various questions for Sonic 1 animations.

    1. How do I change what sprites the game loads for the different rotations? I can't find this in the animation script.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Sonic.asm is the animations, the routine to load these animatons is sonic_animate.

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->2. How do I change the speed an animation plays at?<!--QuoteEnd--></div><!--QuoteEEnd-->
    In sonic.asm look for say sonani_wait: and there should be a number or letter, like dc.b 7 or, dc.b $FF. Now these first numbers are the speed. So say you have it at 7, if you want it faster, then lower the number, and if you want it slower then increase the number. E.g: 1 really fast, $1F quite slow.

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->3. For some reason my normal standing frame is using the second frame of the waiting animation, but I can't find anywhere in the animation script I could have fucked up Sonic's first frame because I can't find it on there, unless the standing frame is under wait for some reason.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Yes the standing sprite is included in sonani_wait: In an orignal rom its one, but if you altered it, then check sonmaped to see what frame it is and then change it to suit the animation script. Hope this helped.
     
  5. Spanner

    Spanner

    The Tool Member
    3,350
    157
    43
    United Kingdom
    Sonic Hacking Contest
    <!--quoteo(post=434676:date=Mar 31 2010, 06:31 PM:name=Hanoch)--><div class='quotetop'>QUOTE (Hanoch @ Mar 31 2010, 06:31 PM) <a href="index.php?act=findpost&pid=434676">[​IMG]</a></div><div class='quotemain'><!--quotec-->Someone once told me that Cinossu released a guide on retrohack how to add a splash screen, but then retrohack died along with that guide.<!--QuoteEnd--></div><!--QuoteEEnd-->
    They were public for a short while before I decided to make them private. Cinossu is welcome to post them anywhere else if he wants to though.
     
  6. <!--quoteo(post=434645:date=Mar 31 2010, 12:47 PM:name=MarkeyJester)--><div class='quotetop'>QUOTE (MarkeyJester @ Mar 31 2010, 12:47 PM) <a href="index.php?act=findpost&pid=434645">[​IMG]</a></div><div class='quotemain'><!--quotec-->From what I was told once, you need to be a "Tech Member" to be able to use the SonicRetro splash screen, I donno if that's true or not though. But I guess it makes sense in a way.<!--QuoteEnd--></div><!--QuoteEEnd-->



    To use the code anyway. If you were to create your own code and import the art yourself—I don't see why not.
     
  7. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    <!--quoteo(post=436063:date=Apr 2 2010, 07:30 AM:name=Animemaster)--><div class='quotetop'>QUOTE (Animemaster @ Apr 2 2010, 07:30 AM) <a href="index.php?act=findpost&pid=436063">[​IMG]</a></div><div class='quotemain'><!--quotec-->Sonic.asm is the animations, the routine to load these animatons is sonic_animate.


    In sonic.asm look for say sonani_wait: and there should be a number or letter, like dc.b 7 or, dc.b $FF. Now these first numbers are the speed. So say you have it at 7, if you want it faster, then lower the number, and if you want it slower then increase the number. E.g: 1 really fast, $1F quite slow.

    Yes the standing sprite is included in sonani_wait: In an orignal rom its one, but if you altered it, then check sonmaped to see what frame it is and then change it to suit the animation script. Hope this helped.<!--QuoteEnd--></div><!--QuoteEEnd-->


    I was able to fix the last two, but I still can't find the rotation frames.
     
  8. MarkeyJester

    MarkeyJester

    Time to Grow Up. Resident Jester
    2,128
    253
    63
    Japan
    <!--quoteo(post=436144:date=Apr 2 2010, 04:12 PM:name=Irixion)--><div class='quotetop'>QUOTE (Irixion @ Apr 2 2010, 04:12 PM) <a href="index.php?act=findpost&pid=436144">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=434645:date=Mar 31 2010, 12:47 PM:name=MarkeyJester)--><div class='quotetop'>QUOTE (MarkeyJester @ Mar 31 2010, 12:47 PM) <a href="index.php?act=findpost&pid=434645">[​IMG]</a></div><div class='quotemain'><!--quotec-->From what I was told once, you need to be a "Tech Member" to be able to use the SonicRetro splash screen, I donno if that's true or not though. But I guess it makes sense in a way.<!--QuoteEnd--></div><!--QuoteEEnd-->

    To use the code anyway. If you were to create your own code and import the art yourself—I don't see why not.
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    A few years back I spent weeks working on creating almost an exact replica, although I never finished creating it as my knowledge was still limited at the time, but even after all that work, I was told I wasn't allowed to use it, "full stop" (Even though it was incomplete), so I just deleted the fucking thing, and now that I am a Tech Member, I just don't feel my time's worth while to recreate such a screen, nor use one already provided in the tech lounge as MainMemory stated.

    <!--quoteo(post=436063:date=Apr 2 2010, 12:30 PM:name=Animemaster)--><div class='quotetop'>QUOTE (Animemaster @ Apr 2 2010, 12:30 PM) <a href="index.php?act=findpost&pid=436063">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436024:date=Apr 2 2010, 10:58 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 2 2010, 10:58 AM) <a href="index.php?act=findpost&pid=436024">[​IMG]</a></div><div class='quotemain'><!--quotec-->1. How do I change what sprites the game loads for the different rotations? I can't find this in the animation script.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Sonic.asm is the animations, the routine to load these animatons is sonic_animate.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Though if you want a specific location, "SAnim_WalkRun:" is the routine related to it, as it collects the angle and calcilates it based on sonic's circumstances, then later it gets added to the frame number, increasing the ID down to the other frames:

    add.b d3,$1A(a0) ; modify frame number

    EDIT: if you want the frame numbers for the other angles..

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;">SonAni_Walk: <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>, <span style="color: #ff0000;">8</span>, <span style="color: #ff0000;">9</span>, <span style="color: #ff0000;">$</span><span style="color: #ff0000;">A</span>, <span style="color: #ff0000;">$</span><span style="color: #ff0000;">B</span>, <span style="color: #ff0000;">6</span>, <span style="color: #ff0000;">7</span>, <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span></pre><!--gc2--><!--U29uQW5pX1dhbGs6CWRjLmIgJiMwMzY7RkYsIDgsIDksCSYjMDM2O0EsICYjMDM2O0IsCTYsIDcsICYj
    MDM2O0ZG--><!--egc2--><!--g2--></div><!--eg2-->
    6, 7, 8, 9, A, B, (are the normal frames)
    C, D, E, F, 10, 11, (45 degrees)
    12, 13, 14, 15, 16, 17, (90 degrees)
    18, 19, 1A, 1B, 1C, 1D, (135 degrees)

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec--><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->2. How do I change the speed an animation plays at?<!--QuoteEnd--></div><!--QuoteEEnd-->
    In sonic.asm look for say sonani_wait: and there should be a number or letter, like dc.b 7 or, dc.b $FF. Now these first numbers are the speed. So say you have it at 7, if you want it faster, then lower the number, and if you want it slower then increase the number. E.g: 1 really fast, $1F quite slow.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Pretty much what Anime said, though the one's that start with $FF, are the ones that have their speed controlled by routines. Such as the walking which is controlled by "loc_13A78:"..

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">14</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,<span style="font-weight:bold;">d2</span> <span style="color: #adadad; font-style: italic;">; get Sonic's speed</span></pre><!--gc2--><!--CQltb3ZlLncJJiMwMzY7MTQoYTApLGQyCTsgZ2V0IFNvbmljJiMzOTtzIHNwZWVk--><!--egc2--><!--g2--></div><!--eg2-->
    It collects the speed from here (Sonic's Ground Speed), makes the value positive, and checks for a speed amount of $0600, if it is higher, it'll be fourced to use the running animation, otherwise walking animation. It'll then negate it and add $0800, if it's a negative value, then the speed was higher than $0800, and the animation speed is set to it's maximum speed amount ($00), however if positive, it was lower than the speed of $0800, so the left byte is read from the speed and set as the frame duration, I.e. if the speed is $0600, then $06 is the speed set:

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;">loc_13AC2:
    <span style="color: #00bfff;">lsr</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">8</span>,<span style="font-weight:bold;">d2</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="font-weight:bold;">d2</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">1E</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; modify frame duration</span></pre><!--gc2--><!--bG9jXzEzQUMyOgoJCWxzci53CSM4LGQyCgkJbW92ZS5iCWQyLCYjMDM2OzFFKGEwKQk7IG1vZGlmeSBm
    cmFtZSBkdXJhdGlvbg==--><!--egc2--><!--g2--></div><!--eg2-->
    as seen here (d2 = the speed, negated + $0800), it's shifted right by 8 bits sending the left byte of the word to the right (or gets divided by $100, which ever one seems more logical), and is then set as the frame duration.

    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec--><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->3. For some reason my normal standing frame is using the second frame of the waiting animation, but I can't find anywhere in the animation script I could have fucked up Sonic's first frame because I can't find it on there, unless the standing frame is under wait for some reason.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Yes the standing sprite is included in sonani_wait: In an orignal rom its one, but if you altered it, then check sonmaped to see what frame it is and then change it to suit the animation script. Hope this helped.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Anime has more or less summed it up =)
     
  9. Tidbit

    Tidbit

    Member
    I have a SonmapED question. Okay I'm working on changing coconuts sprites, and after I import my new sprite, coconuts arms don't get replaced. I've tried deleting the arms tiles but that only garbles the sprites =/. Any ideas guys?
     
  10. MKAmeX

    MKAmeX

    Member
    279
    0
    16
    California
    Needlemouse, Sonic Boom, Graphic Design
    <!--quoteo(post=436569:date=Apr 2 2010, 08:30 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:30 PM) <a href="index.php?act=findpost&pid=436569">[​IMG]</a></div><div class='quotemain'><!--quotec-->I have a SonmapED question. Okay I'm working on changing coconuts sprites, and after I import my new sprite, coconuts arms don't get replaced. I've tried deleting the arms tiles but that only garbles the sprites =/. Any ideas guys?<!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not entirely sure, but I think it may have something to do with the animation script trying to load the arms as separate sprites. I remember replacing buzz bomber and the flames caused a similar problem.
    Play around with the script and remove what you don't need or something.
     
  11. Tidbit

    Tidbit

    Member
    <!--quoteo(post=436573:date=Apr 2 2010, 11:43 PM:name=MKAmeX)--><div class='quotetop'>QUOTE (MKAmeX @ Apr 2 2010, 11:43 PM) <a href="index.php?act=findpost&pid=436573">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436569:date=Apr 2 2010, 08:30 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:30 PM) <a href="index.php?act=findpost&pid=436569">[​IMG]</a></div><div class='quotemain'><!--quotec-->I have a SonmapED question. Okay I'm working on changing coconuts sprites, and after I import my new sprite, coconuts arms don't get replaced. I've tried deleting the arms tiles but that only garbles the sprites =/. Any ideas guys?<!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not entirely sure, but I think it may have something to do with the animation script trying to load the arms as separate sprites. I remember replacing buzz bomber and the flames caused a similar problem.
    Play around with the script and remove what you don't need or something.
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Me + ASM = killer headache. I'll still give it a shot, im guessing all I have to search for is like obj_coconuts or something of the similar?
     
  12. MKAmeX

    MKAmeX

    Member
    279
    0
    16
    California
    Needlemouse, Sonic Boom, Graphic Design
    <!--quoteo(post=436576:date=Apr 2 2010, 08:48 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:48 PM) <a href="index.php?act=findpost&pid=436576">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436573:date=Apr 2 2010, 11:43 PM:name=MKAmeX)--><div class='quotetop'>QUOTE (MKAmeX @ Apr 2 2010, 11:43 PM) <a href="index.php?act=findpost&pid=436573">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436569:date=Apr 2 2010, 08:30 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:30 PM) <a href="index.php?act=findpost&pid=436569">[​IMG]</a></div><div class='quotemain'><!--quotec-->I have a SonmapED question. Okay I'm working on changing coconuts sprites, and after I import my new sprite, coconuts arms don't get replaced. I've tried deleting the arms tiles but that only garbles the sprites =/. Any ideas guys?<!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not entirely sure, but I think it may have something to do with the animation script trying to load the arms as separate sprites. I remember replacing buzz bomber and the flames caused a similar problem.
    Play around with the script and remove what you don't need or something.
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Me + ASM = killer headache. I'll still give it a shot, im guessing all I have to search for is like obj_coconuts or something of the similar?
    <!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not exactly a genius when it comes to ASM, so that should give you a clue as to how easy it is to work with Animation scripts. =P

    Anyway, yeah, search for 'coconuts', or his object ID equivalent (I think it's 9D, or something like that.)

    What you're looking for will be easy to spot, depending on the frames in SonMapEd. For example, if you have 5 frames in SonMapEd (I think there's always an empty 0 slot in front of the first frame, so 5 sprites would appear as 'frame 5/6' in SonMapEd), the animation script should not have any references to something higher than 5.

    The first byte is the speed (this was stated a few posts back), everything after that is a frame, and the last one is usually the byte that tells it to repeat, stop, etc.

    I'm not a technical person so I won't go into extreme details on all of this, and I'm probably wrong about that last part.
     
  13. Tidbit

    Tidbit

    Member
    <!--quoteo(post=436586:date=Apr 3 2010, 12:07 AM:name=MKAmeX)--><div class='quotetop'>QUOTE (MKAmeX @ Apr 3 2010, 12:07 AM) <a href="index.php?act=findpost&pid=436586">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436576:date=Apr 2 2010, 08:48 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:48 PM) <a href="index.php?act=findpost&pid=436576">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436573:date=Apr 2 2010, 11:43 PM:name=MKAmeX)--><div class='quotetop'>QUOTE (MKAmeX @ Apr 2 2010, 11:43 PM) <a href="index.php?act=findpost&pid=436573">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436569:date=Apr 2 2010, 08:30 PM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 2 2010, 08:30 PM) <a href="index.php?act=findpost&pid=436569">[​IMG]</a></div><div class='quotemain'><!--quotec-->I have a SonmapED question. Okay I'm working on changing coconuts sprites, and after I import my new sprite, coconuts arms don't get replaced. I've tried deleting the arms tiles but that only garbles the sprites =/. Any ideas guys?<!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not entirely sure, but I think it may have something to do with the animation script trying to load the arms as separate sprites. I remember replacing buzz bomber and the flames caused a similar problem.
    Play around with the script and remove what you don't need or something.
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Me + ASM = killer headache. I'll still give it a shot, im guessing all I have to search for is like obj_coconuts or something of the similar?
    <!--QuoteEnd--></div><!--QuoteEEnd-->

    I'm not exactly a genius when it comes to ASM, so that should give you a clue as to how easy it is to work with Animation scripts. =P

    Anyway, yeah, search for 'coconuts', or his object ID equivalent (I think it's 9D, or something like that.)

    What you're looking for will be easy to spot, depending on the frames in SonMapEd. For example, if you have 5 frames in SonMapEd (I think there's always an empty 0 slot in front of the first frame, so 5 sprites would appear as 'frame 5/6' in SonMapEd), the animation script should not have any references to something higher than 5.

    The first byte is the speed (this was stated a few posts back), everything after that is a frame, and the last one is usually the byte that tells it to repeat, stop, etc.

    I'm not a technical person so I won't go into extreme details on all of this, and I'm probably wrong about that last part.
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    I play around with it, and if I have to I'll just make new mappings and play it from there, but that would probably dish out a worse head ache lol.
     
  14. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    Code (Text):
    1. move.l&nbsp;&nbsp;&nbsp;&nbsp;#$40000001,($C00004).l
    2. lea&nbsp;&nbsp;&nbsp;&nbsp;(Nem_TitleFg).l,a0; load title&nbsp;&nbsp;&nbsp;&nbsp;screen patterns
    3. bsr.w&nbsp;&nbsp;&nbsp;&nbsp;NemDec
    4. move.l&nbsp;&nbsp;&nbsp;&nbsp;#$60000001,($C00004).l
    5. lea&nbsp;&nbsp;&nbsp;&nbsp;(Nem_TitleSonic).l,a0;&nbsp;&nbsp;&nbsp;&nbsp;load Sonic title screen&nbsp;&nbsp;&nbsp;&nbsp;patterns
    6. bsr.w&nbsp;&nbsp;&nbsp;&nbsp;NemDec

    I'm reading this right when I say $40000001 is $4000 in vram and $60000001 is $6000 correct? I moved the Sonic title art to $7800 and he loads parts of the title banner. If I don't move Sonics art it loads it in place of the large text box at the top. I seem to have plenty of space left in VRAM for the character so I don't know what I'm doing wrong.
    [​IMG]
    [​IMG]
     
  15. MarkeyJester

    MarkeyJester

    Time to Grow Up. Resident Jester
    2,128
    253
    63
    Japan
    <!--quoteo(post=436638:date=Apr 3 2010, 08:26 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 3 2010, 08:26 AM) <a href="index.php?act=findpost&pid=436638">[​IMG]</a></div><div class='quotemain'><!--quotec-->I'm reading this right when I say $40000001 is $4000 in vram and $60000001 is $6000 correct?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Those values are correct, yes.

    <!--quoteo(post=436638:date=Apr 3 2010, 08:26 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 3 2010, 08:26 AM) <a href="index.php?act=findpost&pid=436638">[​IMG]</a></div><div class='quotemain'><!--quotec-->I moved the Sonic title art to $7800 and he loads parts of the title banner. If I don't move Sonics art it loads it in place of the large text box at the top. I seem to have plenty of space left in VRAM for the character so I don't know what I'm doing wrong.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Is the value #$78000001 sent to VDP when loading sonic's title art? Also asuming that your Sonic Title Object is still "Obj0E:", then is:

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">2300</span>,<span style="color: #ff0000;">2</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIyYjMDM2OzIzMDAsMihhMCk=--><!--egc2--><!--g2--></div><!--eg2-->
    ...This altered?

    It would be $7800 divided by 20 (Number of bytes per tile) so:

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="">(</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">7800</span>/<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span><span style="">)</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIygmIzAzNjs3ODAwLyYjMDM2OzIwKSwmIzAzNjswMihhMCk=--><!--egc2--><!--g2--></div><!--eg2-->
    ..or..

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">03C0</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIyYjMDM2OzAzQzAsJiMwMzY7MDIoYTAp--><!--egc2--><!--g2--></div><!--eg2-->
    ..though baring in mind that value could be $23C0, $43C0 or $63C0 depending on the palette line being used.

    If that's not the case, then I'm not sure, sorry.
     
  16. Tidbit

    Tidbit

    Member
    okay well, I finally found the coconuts code after some searching. Thing thing is I don't really see anything that relates to frames in the script.

    Here's the code.
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='geshimain'><!--eg1--><pre class="asm" style="font-family:monospace;">&nbsp;
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    <span style="color: #adadad; font-style: italic;">; ----------------------------------------------------------------------------</span>
    <span style="color: #adadad; font-style: italic;">; Object 9D - Coconuts (monkey badnik) from EHZ</span>
    <span style="color: #adadad; font-style: italic;">; ----------------------------------------------------------------------------</span>
    <span style="color: #adadad; font-style: italic;">; Sprite_37BFA:</span>
    Obj9D:
    <span style="color: #00bfff;">moveq</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> routine<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> off_37C08<span style="">(</span>pc,<span style="font-weight:bold;">d0</span>.<span style="color: #00bfff;">w</span><span style="">)</span>,<span style="font-weight:bold;">d1</span>
    <span style="color: #00bfff;">jmp</span> off_37C08<span style="">(</span>pc,<span style="font-weight:bold;">d1</span>.<span style="color: #00bfff;">w</span><span style="">)</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    off_37C08:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> loc_37C10-off_37C08<span style="color: #adadad; font-style: italic;">; 0</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> loc_37C1C-off_37C08<span style="color: #adadad; font-style: italic;">; 2</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> Obj09_Climbing-off_37C08<span style="color: #adadad; font-style: italic;">; 4</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> Obj09_Throwing-off_37C08<span style="color: #adadad; font-style: italic;">; 6</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37C10:
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> LoadSubObject
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">rts</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37C1C:
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> loc_366D6
    <span style="color: #00bfff;">bclr</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,render_flags<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bclr</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,status<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">tst</span>.<span style="color: #00bfff;">w</span> <span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">beq</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">bset</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,render_flags<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bset</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,status<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    +
    <span style="color: #00bfff;">addi</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">60</span>,<span style="font-weight:bold;">d2</span>
    <span style="color: #00bfff;">cmpi</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">C0</span>,<span style="font-weight:bold;">d2</span>
    <span style="color: #00bfff;">bcc</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">tst</span>.<span style="color: #00bfff;">b</span> objoff_2E<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">beq</span>.<span style="color: #00bfff;">s</span> loc_37C66
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,objoff_2E<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    +
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bmi</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ---------------------------------------------------------------------------</span>
    + <span style="color: #00bfff;">addq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">2</span>,routine<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> loc_37C82
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ---------------------------------------------------------------------------</span>
    loc_37C66:
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">6</span>,routine<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; Obj09_Throwing</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,mapping_frame<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">8</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span>,objoff_2E<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ---------------------------------------------------------------------------</span>
    loc_37C82:
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> objoff_2C<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">cmpi</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">C</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">bcs</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">moveq</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,<span style="font-weight:bold;">d0</span>
    +
    <span style="color: #00bfff;">lea</span> Obj09_ClimbData<span style="">(</span>pc,<span style="font-weight:bold;">d0</span>.<span style="color: #00bfff;">w</span><span style="">)</span>,<span style="font-weight:bold;">a1</span>
    <span style="color: #00bfff;">addq</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">2</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="font-weight:bold;">d0</span>,objoff_2C<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>+,y_vel<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; climbing speed</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>+,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; time to spend moving at this speed</span>
    <span style="color: #00bfff;">rts</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    <span style="color: #adadad; font-style: italic;">; byte_37CA2:</span>
    Obj09_ClimbData:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">18</span> <span style="color: #adadad; font-style: italic;">; 2</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span> <span style="color: #adadad; font-style: italic;">; 4</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">28</span> <span style="color: #adadad; font-style: italic;">; 6</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span> <span style="color: #adadad; font-style: italic;">; 8</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span> <span style="color: #adadad; font-style: italic;">; 10</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    <span style="color: #adadad; font-style: italic;">; loc_37CAE:</span>
    Obj09_Climbing:
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">beq</span>.<span style="color: #00bfff;">s</span> loc_37CC6
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> JmpTo26_ObjectMove
    <span style="color: #00bfff;">lea</span> <span style="">(</span>off_37D88<span style="">)</span>.<span style="color: #00bfff;">l</span>,<span style="font-weight:bold;">a1</span>
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> JmpTo25_AnimateSprite
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37CC6:
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">2</span>,routine<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    <span style="color: #adadad; font-style: italic;">; loc_37CD4:</span>
    Obj09_Throwing:
    <span style="color: #00bfff;">moveq</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> routine_secondary<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> off_37CE6<span style="">(</span>pc,<span style="font-weight:bold;">d0</span>.<span style="color: #00bfff;">w</span><span style="">)</span>,<span style="font-weight:bold;">d1</span>
    <span style="color: #00bfff;">jsr</span> off_37CE6<span style="">(</span>pc,<span style="font-weight:bold;">d1</span>.<span style="color: #00bfff;">w</span><span style="">)</span>
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> JmpTo39_MarkObjGone
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    off_37CE6:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> loc_37CEA-off_37CE6
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> loc_37D06-off_37CE6<span style="color: #adadad; font-style: italic;">; 1</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37CEA:
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bmi</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">rts</span>
    <span style="color: #adadad; font-style: italic;">; ---------------------------------------------------------------------------</span>
    + <span style="color: #00bfff;">addq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">2</span>,routine_secondary<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">8</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">2</span>,mapping_frame<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> loc_37D22
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37D06:
    <span style="color: #00bfff;">subq</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">1</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bmi</span>.<span style="color: #00bfff;">s</span> +
    <span style="color: #00bfff;">rts</span>
    <span style="color: #adadad; font-style: italic;">; ---------------------------------------------------------------------------</span>
    + <span style="color: #00bfff;">clr</span>.<span style="color: #00bfff;">b</span> routine_secondary<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">4</span>,routine<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; Obj09_Climbing</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">8</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bra</span>.<span style="color: #00bfff;">w</span> loc_37C82
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    &nbsp;
    loc_37D22:
    <span style="color: #00bfff;">bsr</span>.<span style="color: #00bfff;">w</span> JmpTo19_SingleObjLoad
    <span style="color: #00bfff;">bne</span>.<span style="color: #00bfff;">s</span> return_37D74
    _move.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">98</span>,<span style="color: #ff0000;">0</span><span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; load obj98</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">3</span>,mapping_frame<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span>,subtype<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span> <span style="color: #adadad; font-style: italic;">; <== Obj9D_SubObjData2</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> x_pos<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,x_pos<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> y_pos<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>,y_pos<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">addi</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span>-<span style="color: #ff0000;">$</span><span style="color: #ff0000;">D</span>,y_pos<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">moveq</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">btst</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">0</span>,render_flags<span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span>
    <span style="color: #00bfff;">bne</span>.<span style="color: #00bfff;">s</span> loc_37D58
    <span style="color: #00bfff;">moveq</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">4</span>,<span style="font-weight:bold;">d0</span>
    &nbsp;
    loc_37D58:
    <span style="color: #00bfff;">lea</span> word_37D76<span style="">(</span>pc,<span style="font-weight:bold;">d0</span>.<span style="color: #00bfff;">w</span><span style="">)</span>,<span style="font-weight:bold;">a2</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="">(</span><span style="font-weight:bold;">a2</span><span style="">)</span>+,<span style="font-weight:bold;">d0</span>
    <span style="color: #00bfff;">add</span>.<span style="color: #00bfff;">w</span> <span style="font-weight:bold;">d0</span>,x_pos<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="">(</span><span style="font-weight:bold;">a2</span><span style="">)</span>+,x_vel<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span>-<span style="color: #ff0000;">$</span><span style="color: #ff0000;">100</span>,y_vel<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    <span style="color: #00bfff;">lea</span> Obj98_CoconutFall<span style="">(</span>pc<span style="">)</span>,<span style="font-weight:bold;">a2</span> <span style="color: #adadad; font-style: italic;">; set the routine used to move the projectile</span>
    <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">l</span> <span style="font-weight:bold;">a2</span>,objoff_2A<span style="">(</span><span style="font-weight:bold;">a1</span><span style="">)</span>
    &nbsp;
    return_37D74:
    <span style="color: #00bfff;">rts</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    word_37D76:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FFF5</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">100</span> <span style="color: #adadad; font-style: italic;">; 1</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">B</span> <span style="color: #adadad; font-style: italic;">; 2</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF00</span> <span style="color: #adadad; font-style: italic;">; 3</span>
    <span style="color: #adadad; font-style: italic;">; off_37D7E:</span>
    Obj9D_SubObjData:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">l</span> Obj9D_Obj98_MapUnc_37D96
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">3EE</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">405</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">$</span><span style="color: #ff0000;">C09</span>
    &nbsp;
    <span style="color: #adadad; font-style: italic;">; animation script</span>
    off_37D88:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> byte_37D8C-off_37D88
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">w</span> byte_37D90-off_37D88<span style="color: #adadad; font-style: italic;">; 1</span>
    byte_37D8C:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">5</span>, <span style="color: #ff0000;">0</span>, <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>
    byte_37D90:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">9</span>, <span style="color: #ff0000;">1</span>, <span style="color: #ff0000;">2</span>, <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">FF</span>
    <span style="color: #00CC66;">even</span>
    <span style="color: #adadad; font-style: italic;">; ------------------------------------------------------------------------</span>
    <span style="color: #adadad; font-style: italic;">; sprite mappings</span>
    <span style="color: #adadad; font-style: italic;">; ------------------------------------------------------------------------</span>
    Obj9D_Obj98_MapUnc_37D96: BINCLUDE <span style="color: #CC33CC;">"mappings/sprite/obj9D.bin"</span></pre><!--gc2--><!--CjsgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT09CjsgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL
    S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQo7IE9iamVjdCA5RCAtIENvY29udXRzIC
    htb25rZXkgYmFkbmlrKSBmcm9tIEVIWgo7IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0
    tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KOyBTcHJpdGVfMzdCRkE6Ck9i
    ajlEOgogICAgbW92ZXEgICAgIzAsZDAKICAgIG1vdmUuYiAgICByb3V0aW5lKGEwKSxkMAogICAgbW92Z
    S53ICAgIG9mZl8zN0MwOChwYyxkMC53KSxkMQogICAgam1wICAgIG9mZl8zN0MwOChwYyxkMS53KQo7ID
    09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0
    9PT09PT09PT09PT09PQpvZmZfMzdDMDg6CiAgICBkYy53IGxvY18zN0MxMC1vZmZfMzdDMDg7IDAKICAg
    IGRjLncgbG9jXzM3QzFDLW9mZl8zN0MwODsgMgogICAgZGMudyBPYmowOV9DbGltYmluZy1vZmZfMzdDM
    Dg7IDQKICAgIGRjLncgT2JqMDlfVGhyb3dpbmctb2ZmXzM3QzA4OyA2CjsgPT09PT09PT09PT09PT09PT
    09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Cgp
    sb2NfMzdDMTA6CiAgICBic3IudyAgICBMb2FkU3ViT2JqZWN0CiAgICBtb3ZlLmIgICAgIyYjMDM2OzEw
    LG9iam9mZl8yQShhMCkKICAgIHJ0cwo7ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P
    T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQoKbG9jXzM3QzFDOgogICAgYnNyLn
    cgICAgbG9jXzM2NkQ2CiAgICBiY2xyICAgICMwLHJlbmRlcl9mbGFncyhhMCkKICAgIGJjbHIgICAgIzA
    sc3RhdHVzKGEwKQogICAgdHN0LncgICAgZDAKICAgIGJlcS5zICAgICsKICAgIGJzZXQgICAgIzAscmVu
    ZGVyX2ZsYWdzKGEwKQogICAgYnNldCAgICAjMCxzdGF0dXMoYTApCisKICAgIGFkZGkudyAgICAjJiMwM
    zY7NjAsZDIKICAgIGNtcGkudyAgICAjJiMwMzY7QzAsZDIKICAgIGJjYy5zICAgICsKICAgIHRzdC5iIC
    AgIG9iam9mZl8yRShhMCkKICAgIGJlcS5zICAgIGxvY18zN0M2NgogICAgc3VicS5iICAgICMxLG9iam9
    mZl8yRShhMCkKKwogICAgc3VicS5iICAgICMxLG9iam9mZl8yQShhMCkKICAgIGJtaS5zICAgICsKICAg
    IGJyYS53ICAgIEptcFRvMzlfTWFya09iakdvbmUKOyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL
    S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KKyAgICBhZGRxLmIgIC
    AgIzIscm91dGluZShhMCkKICAgIGJzci53ICAgIGxvY18zN0M4MgogICAgYnJhLncgICAgSm1wVG8zOV9
    NYXJrT2JqR29uZQo7IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
    LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQpsb2NfMzdDNjY6CiAgICBtb3ZlLmIgICAgIzYscm91d
    GluZShhMCkgICAgOyBPYmowOV9UaHJvd2luZwogICAgbW92ZS5iICAgICMxLG1hcHBpbmdfZnJhbWUoYT
    ApCiAgICBtb3ZlLmIgICAgIzgsb2Jqb2ZmXzJBKGEwKQogICAgbW92ZS5iICAgICMmIzAzNjsyMCxvYmp
    vZmZfMkUoYTApCiAgICBicmEudyAgICBKbXBUbzM5X01hcmtPYmpHb25lCjsgLS0tLS0tLS0tLS0tLS0t
    LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tC
    mxvY18zN0M4MjoKICAgIG1vdmUudyAgICBvYmpvZmZfMkMoYTApLGQwCiAgICBjbXBpLncgICAgIyYjMD
    M2O0MsZDAKICAgIGJjcy5zICAgICsKICAgIG1vdmVxICAgICMwLGQwCisKICAgIGxlYSAgICBPYmowOV9
    DbGltYkRhdGEocGMsZDAudyksYTEKICAgIGFkZHEudyAgICAjMixkMAogICAgbW92ZS53ICAgIGQwLG9i
    am9mZl8yQyhhMCkKICAgIG1vdmUuYiAgICAoYTEpKyx5X3ZlbChhMCkgOyBjbGltYmluZyBzcGVlZAogI
    CAgbW92ZS5iICAgIChhMSkrLG9iam9mZl8yQShhMCkgOyB0aW1lIHRvIHNwZW5kIG1vdmluZyBhdCB0aG
    lzIHNwZWVkCiAgICBydHMKOyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0
    9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KOyBieXRlXzM3Q0EyOgpPYmowOV9DbGltYkRh
    dGE6CiAgICBkYy5iICAtMSwmIzAzNjsyMAogICAgZGMuYiAgIDEsJiMwMzY7MTggICAgOyAyCiAgICBkY
    y5iICAtMSwmIzAzNjsxMCAgICA7IDQKICAgIGRjLmIgICAxLCYjMDM2OzI4ICAgIDsgNgogICAgZGMuYi
    AgLTEsJiMwMzY7MjAgICAgOyA4CiAgICBkYy5iICAgMSwmIzAzNjsxMCAgICA7IDEwCjsgPT09PT09PT0
    9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09CjsgbG9jXzM3Q0FFOgpPYmowOV9DbGltYmluZzoKICAgIHN1YnEuYiAgICAjMSxvYmpvZmZfM
    kEoYTApCiAgICBiZXEucyAgICBsb2NfMzdDQzYKICAgIGJzci53ICAgIEptcFRvMjZfT2JqZWN0TW92ZQ
    ogICAgbGVhICAgIChvZmZfMzdEODgpLmwsYTEKICAgIGJzci53ICAgIEptcFRvMjVfQW5pbWF0ZVNwcml
    0ZQogICAgYnJhLncgICAgSm1wVG8zOV9NYXJrT2JqR29uZQo7ID09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQoKbG9jXzM3Q
    0M2OgogICAgc3VicS5iICAgICMyLHJvdXRpbmUoYTApCiAgICBtb3ZlLmIgICAgIyYjMDM2OzEwLG9iam
    9mZl8yQShhMCkKICAgIGJyYS53ICAgIEptcFRvMzlfTWFya09iakdvbmUKOyA9PT09PT09PT09PT09PT0
    9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K
    OyBsb2NfMzdDRDQ6Ck9iajA5X1Rocm93aW5nOgogICAgbW92ZXEgICAgIzAsZDAKICAgIG1vdmUuYiAgI
    CByb3V0aW5lX3NlY29uZGFyeShhMCksZDAKICAgIG1vdmUudyAgICBvZmZfMzdDRTYocGMsZDAudyksZD
    EKICAgIGpzciAgICBvZmZfMzdDRTYocGMsZDEudykKICAgIGJyYS53ICAgIEptcFRvMzlfTWFya09iakd
    vbmUKOyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT09PT0Kb2ZmXzM3Q0U2OgogICAgZGMudyBsb2NfMzdDRUEtb2ZmXzM3Q0U2C
    iAgICBkYy53IGxvY18zN0QwNi1vZmZfMzdDRTY7IDEKOyA9PT09PT09PT09PT09PT09PT09PT09PT09PT
    09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KCmxvY18zN0NFQTo
    KICAgIHN1YnEuYiAgICAjMSxvYmpvZmZfMkEoYTApCiAgICBibWkucyAgICArCiAgICBydHMKOyAtLS0t
    LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL
    S0tLS0tLS0tLS0KKyAgICBhZGRxLmIgICAgIzIscm91dGluZV9zZWNvbmRhcnkoYTApCiAgICBtb3ZlLm
    IgICAgIzgsb2Jqb2ZmXzJBKGEwKQogICAgbW92ZS5iICAgICMyLG1hcHBpbmdfZnJhbWUoYTApCiAgICB
    icmEudyAgICBsb2NfMzdEMjIKOyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KCmxvY18zN0QwNjoKICAgIHN1YnEuYiAgI
    CAjMSxvYmpvZmZfMkEoYTApCiAgICBibWkucyAgICArCiAgICBydHMKOyAtLS0tLS0tLS0tLS0tLS0tLS
    0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KKyA
    gICBjbHIuYiAgICByb3V0aW5lX3NlY29uZGFyeShhMCkKICAgIG1vdmUuYiAgICAjNCxyb3V0aW5lKGEw
    KSA7IE9iajA5X0NsaW1iaW5nCiAgICBtb3ZlLmIgICAgIzgsb2Jqb2ZmXzJBKGEwKQogICAgYnJhLncgI
    CAgbG9jXzM3QzgyCjsgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT
    09PT09PT09PT09PT09PT09PT09PT09PT09PT09Cgpsb2NfMzdEMjI6CiAgICBic3IudyAgICBKbXBUbzE
    5X1NpbmdsZU9iakxvYWQKICAgIGJuZS5zICAgIHJldHVybl8zN0Q3NAogICAgX21vdmUuYiAgICAjJiMw
    MzY7OTgsMChhMSkgOyBsb2FkIG9iajk4CiAgICBtb3ZlLmIgICAgIzMsbWFwcGluZ19mcmFtZShhMSkKI
    CAgIG1vdmUuYiAgICAjJiMwMzY7MjAsc3VidHlwZShhMSkgOyAmbHQ7PT0gT2JqOURfU3ViT2JqRGF0YT
    IKICAgIG1vdmUudyAgICB4X3BvcyhhMCkseF9wb3MoYTEpCiAgICBtb3ZlLncgICAgeV9wb3MoYTApLHl
    fcG9zKGExKQogICAgYWRkaS53ICAgICMtJiMwMzY7RCx5X3BvcyhhMSkKICAgIG1vdmVxICAgICMwLGQw
    CiAgICBidHN0ICAgICMwLHJlbmRlcl9mbGFncyhhMCkKICAgIGJuZS5zICAgIGxvY18zN0Q1OAogICAgb
    W92ZXEgICAgIzQsZDAKCmxvY18zN0Q1ODoKICAgIGxlYSAgICB3b3JkXzM3RDc2KHBjLGQwLncpLGEyCi
    AgICBtb3ZlLncgICAgKGEyKSssZDAKICAgIGFkZC53ICAgIGQwLHhfcG9zKGExKQogICAgbW92ZS53ICA
    gIChhMikrLHhfdmVsKGExKQogICAgbW92ZS53ICAgICMtJiMwMzY7MTAwLHlfdmVsKGExKQogICAgbGVh
    ICAgIE9iajk4X0NvY29udXRGYWxsKHBjKSxhMiA7IHNldCB0aGUgcm91dGluZSB1c2VkIHRvIG1vdmUgd
    GhlIHByb2plY3RpbGUKICAgIG1vdmUubCAgICBhMixvYmpvZmZfMkEoYTEpCgpyZXR1cm5fMzdENzQ6Ci
    AgICBydHMKOyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0
    9PT09PT09PT09PT09PT09PT09PT09PT0Kd29yZF8zN0Q3NjoKICAgIGRjLncgJiMwMzY7RkZGNQogICAg
    ZGMudyAgJiMwMzY7MTAwICAgIDsgMQogICAgZGMudyAgICAmIzAzNjtCICAgIDsgMgogICAgZGMudyAmI
    zAzNjtGRjAwICAgIDsgMwo7IG9mZl8zN0Q3RToKT2JqOURfU3ViT2JqRGF0YToKICAgIGRjLmwgT2JqOU
    RfT2JqOThfTWFwVW5jXzM3RDk2CiAgICBkYy53ICYjMDM2OzNFRQogICAgZGMudyAmIzAzNjs0MDUKICA
    gIGRjLncgJiMwMzY7QzA5Cgo7IGFuaW1hdGlvbiBzY3JpcHQKb2ZmXzM3RDg4OgogICAgZGMudyBieXRl
    XzM3RDhDLW9mZl8zN0Q4OAogICAgZGMudyBieXRlXzM3RDkwLW9mZl8zN0Q4ODsgMQpieXRlXzM3RDhDO
    gogICAgZGMuYiAgIDUsICAwLCAgMSwmIzAzNjtGRgpieXRlXzM3RDkwOgogICAgZGMuYiAgIDksICAxLC
    AgMiwgIDEsJiMwMzY7RkYKICAgIGV2ZW4KOyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0
    tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KOyBzcHJpdGUgbWFwcGluZ3MKOyAt
    LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL
    S0tLS0tLS0tLS0KT2JqOURfT2JqOThfTWFwVW5jXzM3RDk2OiAgICBCSU5DTFVERSAmcXVvdDttYXBwaW
    5ncy9zcHJpdGUvb2JqOUQuYmluJnF1b3Q7--><!--egc2--><!--g2--></div><!--eg2--></div>

    Like I said above, I'm trying to remove coconuts arms from loading, or being used in any way.

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='geshimain'><!--eg1--><pre class="asm" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">; ===========================================================================</span>
    <span style="color: #adadad; font-style: italic;">; byte_37CA2:</span>
    Obj09_ClimbData:
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">18</span> <span style="color: #adadad; font-style: italic;">; 2</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span> <span style="color: #adadad; font-style: italic;">; 4</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">28</span> <span style="color: #adadad; font-style: italic;">; 6</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> -<span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span> <span style="color: #adadad; font-style: italic;">; 8</span>
    <span style="color: #00bfff;">dc</span>.<span style="color: #00bfff;">b</span> <span style="color: #ff0000;">1</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">10</span> <span style="color: #adadad; font-style: italic;">; 10</span>
    <span style="color: #adadad; font-style: italic;">; ===========================================================================</span></pre><!--gc2--><!--OyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT0KOyBieXRlXzM3Q0EyOgpPYmowOV9DbGltYkRhdGE6CiAgICBkYy5iICAtM
    SwmIzAzNjsyMAogICAgZGMuYiAgIDEsJiMwMzY7MTggICAgOyAyCiAgICBkYy5iICAtMSwmIzAzNjsxMC
    AgICA7IDQKICAgIGRjLmIgICAxLCYjMDM2OzI4ICAgIDsgNgogICAgZGMuYiAgLTEsJiMwMzY7MjAgICA
    gOyA4CiAgICBkYy5iICAgMSwmIzAzNjsxMCAgICA7IDEwCjsgPT09PT09PT09PT09PT09PT09PT09PT09
    PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09--><!--egc2--><!--g2--></div><!--eg2-->
    That code was the only thing I though relevant to which sprite is loaded or used, but like I said I have no clue what I'm doing when it comes to asm.
     
  17. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    <!--quoteo(post=436679:date=Apr 3 2010, 05:38 AM:name=MarkeyJester)--><div class='quotetop'>QUOTE (MarkeyJester @ Apr 3 2010, 05:38 AM) <a href="index.php?act=findpost&pid=436679">[​IMG]</a></div><div class='quotemain'><!--quotec--><!--quoteo(post=436638:date=Apr 3 2010, 08:26 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 3 2010, 08:26 AM) <a href="index.php?act=findpost&pid=436638">[​IMG]</a></div><div class='quotemain'><!--quotec-->I'm reading this right when I say $40000001 is $4000 in vram and $60000001 is $6000 correct?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Those values are correct, yes.

    <!--quoteo(post=436638:date=Apr 3 2010, 08:26 AM:name=Polygon Jim)--><div class='quotetop'>QUOTE (Polygon Jim @ Apr 3 2010, 08:26 AM) <a href="index.php?act=findpost&pid=436638">[​IMG]</a></div><div class='quotemain'><!--quotec-->I moved the Sonic title art to $7800 and he loads parts of the title banner. If I don't move Sonics art it loads it in place of the large text box at the top. I seem to have plenty of space left in VRAM for the character so I don't know what I'm doing wrong.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Is the value #$78000001 sent to VDP when loading sonic's title art? Also asuming that your Sonic Title Object is still "Obj0E:", then is:

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">2300</span>,<span style="color: #ff0000;">2</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIyYjMDM2OzIzMDAsMihhMCk=--><!--egc2--><!--g2--></div><!--eg2-->
    ...This altered?

    It would be $7800 divided by 20 (Number of bytes per tile) so:

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="">(</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">7800</span>/<span style="color: #ff0000;">$</span><span style="color: #ff0000;">20</span><span style="">)</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIygmIzAzNjs3ODAwLyYjMDM2OzIwKSwmIzAzNjswMihhMCk=--><!--egc2--><!--g2--></div><!--eg2-->
    ..or..

    <!--g1--><div class='geshitop'>Syntax Highlighted Code: ASM</div><div class='codemain'><!--eg1--><pre class="asm" style="font-family:monospace;"> <span style="color: #00bfff;">move</span>.<span style="color: #00bfff;">w</span> <span style="color: #ff0000;">#</span><span style="color: #ff0000;">$</span><span style="color: #ff0000;">03C0</span>,<span style="color: #ff0000;">$</span><span style="color: #ff0000;">02</span><span style="">(</span><span style="font-weight:bold;">a0</span><span style="">)</span></pre><!--gc2--><!--CQltb3ZlLncJIyYjMDM2OzAzQzAsJiMwMzY7MDIoYTAp--><!--egc2--><!--g2--></div><!--eg2-->
    ..though baring in mind that value could be $23C0, $43C0 or $63C0 depending on the palette line being used.

    If that's not the case, then I'm not sure, sorry.
    <!--QuoteEnd--></div><!--QuoteEEnd-->

    Thanks, I forgot how to do that because I'm a durp.

    [​IMG]
     
  18. MKAmeX

    MKAmeX

    Member
    279
    0
    16
    California
    Needlemouse, Sonic Boom, Graphic Design
    <!--quoteo(post=436751:date=Apr 3 2010, 07:36 AM:name=Tidbit)--><div class='quotetop'>QUOTE (Tidbit @ Apr 3 2010, 07:36 AM) <a href="index.php?act=findpost&pid=436751">[​IMG]</a></div><div class='quotemain'><!--quotec-->okay well, I finally found the coconuts code after some searching. Thing thing is I don't really see anything that relates to frames in the script.

    Here's the code.

    (ASM)

    That code was the only thing I though relevant to which sprite is loaded or used, but like I said I have no clue what I'm doing when it comes to asm.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Code (Text):
    1. ; animation script
    2. off_37D88:
    3. &nbsp;&nbsp;&nbsp;&nbsp;dc.w byte_37D8C-off_37D88
    4. &nbsp;&nbsp;&nbsp;&nbsp;dc.w byte_37D90-off_37D88; 1
    5. byte_37D8C:
    6. &nbsp;&nbsp;&nbsp;&nbsp;dc.b&nbsp;&nbsp; 5,&nbsp;&nbsp;0,&nbsp;&nbsp;1,$FF
    7. byte_37D90:
    8. &nbsp;&nbsp;&nbsp;&nbsp;dc.b&nbsp;&nbsp; 9,&nbsp;&nbsp;1,&nbsp;&nbsp;2,&nbsp;&nbsp;1,$FF
    9. &nbsp;&nbsp;&nbsp;&nbsp;even
    This is the animation script. I can't help you all that much because I don't really know what kind of frames you're using, but basically the

    "dc.b #,"

    part is the speed. The number will adjust your speed accordingly.

    the numbers "5, 0, 1," and "1, 2, 1," are the frames. You'll have to play with these numbers to make your own animations.

    And last the "$FF" part is the... Well this is telling it to repeat the animation when finished.


    I honestly don't know exactly what is wrong, but if you change the numbers around and the arms turn into other sprites, then you know should get an idea of what to do.
     
  19. Tidbit

    Tidbit

    Member
    That helps me out alot thanks for pointing out the script for me, im sure I'll be able to figure it out.
     
  20. FeliciaVal

    FeliciaVal

    Member
    I need a bit of help guys, I'm having trouble with my Sonic 1 hack: I have no idea how to make a palette for my character for Labyrinth Zone underwater. I tried messing up with HivePal to get colours right but I've never been able to do so. Could maybe someone help me on this?