Advertisement
wolfboyft

helping someone out

Jun 26th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. ---PLACE THE FOLLOWING ANYWHERE IN tilesets/animations.asm -- probably below the SafariFountain2 (no b) routine. and also please don't mind the fact that the address comments have not been accounted for (they're from the original. everything's messed up now, but they're not important)---
  2.  
  3. SafariFountainAnim1b: ; fc5cc
  4. ; Splash in the bottom-right corner of the fountain.
  5. ld hl, [sp+0]
  6. ld b, h
  7. ld c, l
  8. ld a, [TileAnimationTimer]
  9. and 6
  10. srl a
  11. rept 2
  12. inc a
  13. endr
  14. and 3
  15. swap a
  16. ld e, a
  17. ld d, 0
  18. ld hl, SafariFountainFrames
  19. add hl, de
  20. ld sp, hl
  21. ld hl, VTiles2 tile $6
  22. jp WriteTile
  23. ; fc5eb
  24.  
  25.  
  26. SafariFountainAnim2b: ; fc5eb
  27. ; Splash in the top-left corner of the fountain.
  28. ld hl, [sp+0]
  29. ld b, h
  30. ld c, l
  31. ld a, [TileAnimationTimer]
  32. and 6
  33. rept 3
  34. add a
  35. endr
  36. ld e, a
  37. ld d, 0
  38. ld hl, SafariFountainFrames
  39. add hl, de
  40. ld sp, hl
  41. ld hl, VTiles2 tile $5
  42. jp WriteTile
  43. ; fc605
  44.  
  45. ---REPLACE THE FOLLOWING---
  46. Tileset35Anim: ; 0xfc2e7
  47. Tileset36Anim: ; 0xfc2e7
  48. dw NULL, WaitTileAnimation
  49. dw NULL, WaitTileAnimation
  50. dw NULL, WaitTileAnimation
  51. dw NULL, WaitTileAnimation
  52. dw NULL, DoneTileAnimation
  53.  
  54. ---WITH THE FOLLOWING---
  55. Tileset35Anim: ; 0xfc2e7
  56. dw NULL, WaitTileAnimation
  57. dw NULL, WaitTileAnimation
  58. dw NULL, WaitTileAnimation
  59. dw NULL, WaitTileAnimation
  60. dw NULL, DoneTileAnimation
  61. Tileset36Anim: ; 0xfc2e7
  62. dw NULL, SafariFountainAnim2b
  63. dw NULL, WaitTileAnimation
  64. dw NULL, WaitTileAnimation
  65. dw NULL, WaitTileAnimation
  66. dw NULL, SafariFountainAnim1b
  67. dw NULL, WaitTileAnimation
  68. dw NULL, StandingTileFrame8
  69. dw NULL, DoneTileAnimation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement