Language…
19 users online:  AmperSam,  Anorakun, Beed28, DanMario24YT, gizmo_321, Golden Yoshi, Green, h.carrell, Hammerer, JezJitzu, Mohamad20ZX, OrangeBronzeDaisy, Papangu, recam, Serge, signature_steve, SMW Magic, Spedinja, TrashCity - Guests: 283 - Bots: 414
Users: 64,795 (2,370 active)
Latest user: mathew

Walk in the direction you faced when you completed the level

CompleteASM

Name
Walk in the direction you faced when you completed the level

Type
UberASM

Description
When you finish a level at the goal post or the orb, you move/walk in the direction you were facing when you touched it.

Ive seen some ASM posts where you have the player always go left or always go right but i want it based on the direction you're facing instead of always one or the other.

References
N/A
I'll claim this.
I'm Japanese, so if I'm not speaking well, sorry!
This was fairly easy.
First, insert this patch into the ROM.
Next, patch the following code with Asar.
Code
if read1($00FFD5) == $23
	sa1rom
	!addr = $6000
else
	lorom
	!addr = $0000
endif

org $00FA80
autoclean JSL Main : NOP #$02

freedata

Main:
LDA $76 : BNE .return
INC $1908|!addr
.return
STZ.w $13F3|!addr : STZ.w $1891|!addr
RTL

That should be all you need, and it should work as you want!

P.S.
Note that we found it quite difficult to create this code with UberASM, so it became an Asar patch.
If you need to use UberASM, please let me know. I'll do my best.
I'm Japanese, so if I'm not speaking well, sorry!
Thank you, Francium! This will be very fun to play around with in my hack!

CompleteASM