Language…
9 users online: crocodileman94, isaix, Jordan, Maw, obiet,  patcdr, Shiki_Makiro, SpacePea, underway - Guests: 250 - Bots: 361
Users: 64,795 (2,377 active)
Latest user: mathew

Freeze After On/Off change

OpenASM

Type: UberASM, Level

Description: When a switch is hit, Mario will be frozen (cannot move) for x number of seconds, which can be changed in the ASM file.

Thanks.
Frozen as in Mario's position is exactly the same, or that pressing buttons doesn't do anything and he still falls/is carried by momentum? And he can still take damage while frozen?
Originally posted by spooonsss
Frozen as in Mario's position is exactly the same, or that pressing buttons doesn't do anything and he still falls/is carried by momentum? And he can still take damage while frozen?

Yes.
You answered my either/or question with "yes" #smw{o_O?}. Anyways, here's a level uberasm that stuns Mario like morton/roy/gpw2 bowser when the on/off switch is flipped.

Code
; Stun Mario when a switch is flipped
!FreeRAM = $1869|!addr ; 1 byte of freeRAM
!time = $28  ; number of frames(hex) stun lasts

init:
LDA #0
LDY $14AF|!addr
BEQ +
INC
+
STA !FreeRAM
RTL

main:
LDA $9D
ORA $13D4|!addr
BNE .return

LDA #0
LDY $14AF|!addr
BEQ +
INC
+
EOR !FreeRAM
BEQ .return

LDA !FreeRAM
EOR #1
STA !FreeRAM

LDA #!time
STA $18BD|!addr ; stun like Morton/Roy

.return:
RTL
Your request has been automatically canceled and archived as it is older than 30 days and has not been claimed. More information on why this happens can be found here.

Please feel free to re-request it again by making a new thread, or request something else.

OpenASM