Difference between revisions of "Create New Monitors (In Sonic 2)"
From Sonic Retro
(Created page with "Hello Everyone Shadow05 here and today I'm going to show you how to create new monitors (In Sonic 2). ==Creating New Subtype(s)== ===GitHub=== First Goto ''Obj2E_Types:'' and...") |
|||
Line 2: | Line 2: | ||
==Creating New Subtype(s)== | ==Creating New Subtype(s)== | ||
===GitHub=== | ===GitHub=== | ||
+ | ====Adding Code==== | ||
First Goto ''Obj2E_Types:'' and you will see this. | First Goto ''Obj2E_Types:'' and you will see this. | ||
<syntaxhighlight lang="asm"> | <syntaxhighlight lang="asm"> | ||
Line 44: | Line 45: | ||
Now add a new sprite in SonMapED Along with some art but now you might notice the broken sprite is the new monitor! | Now add a new sprite in SonMapED Along with some art but now you might notice the broken sprite is the new monitor! | ||
+ | ====Fixing Wrong Animations==== | ||
To fix this Replace B in ''Mapping_frame'' with C, A in ''anim'' with B and B in ''Ani_obj26_Broken'' with C. | To fix this Replace B in ''Mapping_frame'' with C, A in ''anim'' with B and B in ''Ani_obj26_Broken'' with C. | ||
+ | ====Finding Free Vram==== | ||
+ | So you've added art to your new monitor but it's overwriting the ring art! | ||
+ | |||
+ | To fix this you'll need to find free Vram with at least $41 bytes free so it doesn't over write the other art. | ||
===Xerowhirl=== | ===Xerowhirl=== | ||
− | |||
Coming Soon | Coming Soon | ||
==New Monitors== | ==New Monitors== | ||
Line 53: | Line 58: | ||
This part of the guide contains my ideas so you don't need to add them. | This part of the guide contains my ideas so you don't need to add them. | ||
− | Coming Soon | + | Coming Soon |
Latest revision as of 21:32, 31 March 2018
Hello Everyone Shadow05 here and today I'm going to show you how to create new monitors (In Sonic 2).
Contents
Creating New Subtype(s)
GitHub
Adding Code
First Goto Obj2E_Types: and you will see this.
; ===========================================================================
Obj2E_Types: offsetTable
offsetTableEntry.w robotnik_monitor ; 0 - Static
offsetTableEntry.w sonic_1up ; 1 - Sonic 1-up
offsetTableEntry.w tails_1up ; 2 - Tails 1-up
offsetTableEntry.w robotnik_monitor ; 3 - Robotnik
offsetTableEntry.w super_ring ; 4 - Super Ring
offsetTableEntry.w super_shoes ; 5 - Speed Shoes
offsetTableEntry.w shield_monitor ; 6 - Shield
offsetTableEntry.w invincible_monitor ; 7 - Invincibility
offsetTableEntry.w teleport_monitor ; 8 - Teleport
offsetTableEntry.w qmark_monitor ; 9 - Question mark
At the end add this.
offsetTableEntry.w Invalid_monitor_1 ; A - Invalid 1
Then after qmark_monitor add this.
; ===========================================================================
; ---------------------------------------------------------------------------
; 'Invalid' Monitor #1
; Insert Comment Here
; ---------------------------------------------------------------------------
Invalid_monitor_1:
nop ; Insert Code Here.
Beneath that is Ani_Obj26 before offsetTableEntry.w Ani_obj26_Broken add this.
offsetTableEntry.w Ani_obj26_invalid1 ; $A
Then this.
Ani_obj26_invalid1:
dc.b 1, 0, $B, $B, 1, $B, $B,$FF
Now add a new sprite in SonMapED Along with some art but now you might notice the broken sprite is the new monitor!
Fixing Wrong Animations
To fix this Replace B in Mapping_frame with C, A in anim with B and B in Ani_obj26_Broken with C.
Finding Free Vram
So you've added art to your new monitor but it's overwriting the ring art!
To fix this you'll need to find free Vram with at least $41 bytes free so it doesn't over write the other art.
Xerowhirl
Coming Soon
New Monitors
This part of the guide contains my ideas so you don't need to add them.
Coming Soon