Actions

SCHG How-to

Create New Monitors (In Sonic 2)

From Sonic Retro

Revision as of 03:44, 31 March 2018 by Shadow05 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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!

To fix this Replace B in Mapping_frame with C, A in anim with B and B in Ani_obj26_Broken with C.

Xerowhirl

Coming Soon

New Monitors

This part of the guide contains my ideas so you don't need to add them.

Coming Soon.