Pages: 1
Posted on 07-26-16, 06:17 pm (rev. 1 by  Hiccup on 07-26-16, 06:21 pm)
Birdo


Karma: 2754
Posts: 1696/2091
Since: 06-26-11
I was wondering if rising/lowering poison water is understood yet. I want the ? Switch to cause the poison water to lower until it is not visible (or preferably until I can't hear enemies that fall in it make a "splash" sound.)

I set up the sprite data how you would expect it to need to be set up. But it just doesn't act right. Here is the level.
Posted on 07-26-16, 06:39 pm
Death by cuteness

Karma: 6564
Posts: 485/598
Since: 05-01-13
Actually this is a problem that occurs for all 3 of Water, Lava and Poison Water.
Even if set to lower, the game always assumes their final position is as if they would have traveled the same distance but upwards.





… … …

I know, I know, I'm on it…
Posted on 07-26-16, 06:43 pm
Birdo


Karma: 2754
Posts: 1697/2091
Since: 06-26-11
Oh I see. So is all the sprite data for liquids actually the same? Which sprite in the spritedb has the correct data?

I guess that liquids just don't have proper support for event triggered lowering at all? Is the buggy lowering thing you can do a glitch, or unused?
That's fine, I can rework my level.

… … …

I don't think I need to give you ideas for code hacks, as you've probably come up with them already

Posted on 07-26-16, 07:45 pm (rev. 3 by  MeroMero on 07-26-16, 07:48 pm)
Death by cuteness

Karma: 6564
Posts: 487/598
Since: 05-01-13
Well, that was fast!

Water, Lava and Poison Water fix for ASM-Template:
repl_02165024_ov_36: LDR R0, [R4, #8] ANDS R0, R0, #0x80 @Check Liquid direction ADDEQ R1, R1, R2 @If up add R2 to get final position SUBNE R1, R1, R2 @If down subtract R2 to get final position MOV R0, #0x1000 ADD LR, LR, #4 BX LR


Tested on a NDS.

 Hiccup, you might want to edit your topic title to put an ASM tag.
Posted on 07-27-16, 12:20 am
Birdo


Karma: 2754
Posts: 1699/2091
Since: 06-26-11
Thanks for making that. If for some reason people can't use that, here is a workaround: Trigger a flag on start to make the liquid quickly go up to the position you want it initially. Set the ? Switch (or whatever) to disable that flag to make the liquid go down to the actual initial position (the pre level-start trigger position)
Posted on 07-27-16, 12:23 pm
Fuzzy
Will never finish a hack

Karma: 1843
Posts: 164/778
Since: 03-25-16
Guys, was getting errors when inserting ASM, so I uninstalled and reinstalled devkitpro. Now it says "Make is not recognized as an internal or external command, operable program or batch file". What can I do? I searched and found nothing. I have reinstalled it 3 times. NO CLUE what's going on. I included everything in the installation, just in case. Make.exe is in C:\devKitPro\mysys\bin.
_________________________
hey look, I did a thing
Pages: 1