Banner
Views: 236,416,796
Time: 2013-05-23 12:20:19 PM
11 users online: LaughingLuigi, levelengine, Luckiest3, o ShadowPhoenix, shreerocks1324, ShUriK KiD, o Smallhacker, Sokobansolver, o Tahixham, Tobias94, Vitor Vilela - Guests: 27 - Bots: 12Users: 22,869 (1,276 active)
Latest: jwarne2016
Tip: Create a thread for your hack in the Works in Progress once you have enough screenshots/videos to show.
Making screen call layer 2 Y position for a second and then return to other code
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Making screen call layer 2 Y position for a second and then return to other code
Pages: « 1 »
I have a concept:

LDA #$FF
LDA #$00
STA $1468

But I don't know how to add one second and then change to 00 back.
Sometimes I wonder if you're being purposefully obtuse.


It seems you want to change layer 2... somehow... for 1 second. For that, you'll need to make a timer. Find some free ram, and count down for 60 frames. 60 frames = 1 second.
Count down for 60 frames? How to do that?

?????????
STA $0DD4
You need to use free RAM, increase it every frame, and check if it's #$3C (60 in dec).
I guess I got it.
LDA $0DD4
CMP #$3C
BEQ Left
...

Is it OK or is it wrong?
Last edited on 2012-03-03 04:43:40 PM by Luigi370.
Nope, the free RAM never changes, it's always #$00. You need to increase it (INC) and then check.

Code
INC $0DD4 LDA $0DD4 CMP #$3C [...]
Last edited on 2012-03-03 05:43:57 PM by New Hacker.
I'm a bit confused.
I guess it sould be:
Code
INC $0DD4 LDA $0DD4 CMP #$3C BNE FLASH LDA $76 CMP #$01 BNE FLASH BEQ Right ;;;;;;;;;;;;;;;;;;;;;;;;;; INC $0DD4 LDA $0DD4 CMP #$3C BNE FLASH LDA $76 CMP #$01 BNE FLASH BEQ Left
Hmm... there's something wrong with it...

Code
INC $0DD4 LDA $0DD4 CMP #$3C BNE FLASH LDA $76 CMP #$01 BNE FLASH BEQ Right


Increase $0DD4 and compare its current value with #$3C, if it's not #$3C (any other value), then go to "FLASH", if it's #$3C, then continue. Check where Mario's facing, if he's facing left, go to "FLASH", and if he's facing right, then continue. You should put an RTL/S instead of semicolons, they don't work that way.

Code
INC $0DD4 LDA $0DD4 #$3C BNE FLASH LDA $76 CMP #$01 BNE FLASH BEQ Left


You'll never be able to jump to this part of the code, since it doesn't have a label.

Hint: use semicolons (;) to comment the code, that can help you to know what you are doing, for example:

Code
LDA #$01 ;\ Make Mario STA $19 ;/ big. RTS ; And return.


Anyways, what exactly do you want to do?
Last edited on 2012-03-03 06:43:30 PM by New Hacker.
I wanna remake DKC2 flashlight fish effect with layer 2. I know it can be hard, but I wanna try. All I need now is just the flash effect when he is turning.
The problem is, that I haven't played that game XD, and I don't now what it does. Sorry.
Here's the video:
The fish invites at 0:10

I'll use some on off animations to make it invite you. I have a method.
Um... I think it would require HDMA and a lot of ASM. This is not possible to do for me, I mean, I can't do that kind of effects with my ASM knowledge... Sorry.
That's definitely HDMA.

Could be reproduced with layer 3 or something but that means you'd have to sacrifice a layer.
If you just wanted to make the screen flash white when Mario turns, then you could probably do that with some color math.

If you wanted to do the whole fish effect, then yeah, that would require HDMA.
I wanna REMAKE. Not rip it off, but make a simpler remake. I need a timer countdown, but I don't know how to do this. And I wanna make flash, with just layer 2 Y position change.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Making screen call layer 2 Y position for a second and then return to other code

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu