Pages: 1
Posted on 07-27-16, 04:06 pm (rev. 9 by  skawo on 09-06-16, 12:38 pm)


Karma: 19757
Posts: 507/1100
Since: 04-02-13
If you ever played Newer Wii, you know the drill. It's a star coin that disappears when collected, but doesn't count toward level completion. Plays a Boo laugh and some fancy effects while at it; needs sound set to have the boo laugh enabled, of course.

Ghost Star Coin:
#Always spawn repl_02154690_ov_36: LDR R2, [R5,#8] LSR R2, R2, #28 AND R2, R2, #0xF CMP R2, #1 MOVEQ R2, #0 LDRNEB R2, [R0] #Don't ever look collected repl_02154678_ov_36: CMP R0, #0 BXEQ LR LDR R0, [R5, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 MOVEQ R0, #0 BX LR #Spin counterclockwise repl_02154B78_ov_36: LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 LDR R0,=0x0212945C LDRSH R0, [R0,#0x6] RSBEQ R0,#0x1 BX LR #Don't count towards level completion repl_02154C54_ov_36: MOV R4, R0 LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 BEQ 0x02154CA8 BXNE LR #Play Boo Laugh repl_02154CB0_ov_36: STMFD SP!, {LR} BL 0x02012398 LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 LDREQ R0, =0xA2 ADDEQ R1, R4, #0x5C BLEQ 0x02012398 LDMFD SP!, {PC} #Particle 1 replacement repl_02154D08_ov_36: LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 LDRNE R0, =0xF8 LDREQ R0, =0x1D BX LR #Particle 2 replacement repl_02154D28_ov_36: LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 LDRNE R0, =0xF9 LDREQ R0, =0xFA BX LR #Particle 3 replacement repl_02154D34_ov_36: LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 LDRNE R0, =0xFA LDREQ R0, =0x6B BX LR #Destroy itself repl_02154D3C_ov_36: LDR R0, [R4,#0x508] CMP R0, #0 BXNE LR LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #1 MOVLT R0, #0 BX LR

To put into a level - Nybble 5 (counting from 1):
0 - Regular star coin
1 - Ghost star coin
2 - Appear on bottom screen immediately without spinning down



Tested on NDS.
Posted on 07-27-16, 04:25 pm
Panser


Karma: 577
Posts: 111/332
Since: 04-09-16
good skawo
Posted on 07-27-16, 06:40 pm


Karma: 19757
Posts: 508/1100
Since: 04-02-13
Forgot that the Star Coin refuses to spawn if the coin of that number was already collected in the current run of the level; fixed.
Posted on 07-27-16, 06:56 pm
Paratroopa


Karma: 427
Posts: 136/147
Since: 07-03-13
Did you try to remove the collecting sound of the star coin, leaving only the boo laugh?

Good job by the way.
_________________________
New Super Mario Bros. The Next Levels.
Progress:
W1: 100% | W2: 100% | W3: 33% | W4: 100%
Posted on 07-27-16, 07:00 pm (rev. 4 by  skawo on 07-27-16, 07:01 pm)


Karma: 19757
Posts: 509/1100
Since: 04-02-13
Yes, and I didn't like it. But, if you'd rather prefer that, delete the repl_02154CB0_ov_36 and put this in instead:
repl_02154CA8_ov_36: LDR R0, [R4, #8] LSR R0,R0,#28 AND R0, R0, #0xF CMP R0, #0 LDREQ R0, =0x123 LDRNE R0, =0xA2 ADD R1, R4, #0x5C BX LR
Posted on 07-27-16, 07:04 pm (rev. 1 by  Pedroalone on 07-27-16, 07:36 pm)
Paratroopa


Karma: 427
Posts: 137/147
Since: 07-03-13
Cool!

I will try* lol this right now.
_________________________
New Super Mario Bros. The Next Levels.
Progress:
W1: 100% | W2: 100% | W3: 33% | W4: 100%
Posted on 07-27-16, 08:46 pm


Karma: 19757
Posts: 511/1100
Since: 04-02-13
*sighs*
Found more issues. Fixed again. Should be the last time.
Pages: 1