Language…
22 users online:  AmperSam,  Anorakun, apache, caioskii, Dennsen86, Ekimnoid, GRIMMKIN, Heitor Porfirio, JudithPrietht, krizeth, LightAligns, mario90, mtheordinarygamer, Rykon-V73, Sweetdude,  Tahixham,  Teyla, The_Uber_Camper,  Thomas, VSmario90, Yuvi, Zandro - Guests: 291 - Bots: 358
Users: 64,795 (2,373 active)
Latest user: mathew

Layer 2 Smash problem

Hi!

I've searched through the forums and FAQ's and couldnt find an answer to my problem, so I'm hoping one of you might help me.

I'm making a level that's using the layer 2 smash-1 sprite command on screens 09-0F.
The problem is Mario can't stand on the layer 2 platforms when they are moving up, instead, he falls through.

Is there a way to customize layer 2 smash with hex editing or custom ASM (or something else) so that Mario doesnt fall through? for example by slightly lowering the speed by which the platforms move upwards. I am aware that you can change the speed by using different screens, but I would really prefer the fast moving ones on screen 09-0F.

Thanks!


Start by pasting this code into a text file:

Code
org $05C902
	dw $0800


The $0800 value here is the rising speed as a 16-bit hexadecimal value. Each increment of 100 is equivalent to one pixel per frame, so the default speed is moving Layer 2 at 8 pixels per frame.

Play with that value, then save it with a .asm extension, and then apply with Asar. If the speeds you set still don't work for you, you can open it back up, edit the value, and reapply as many times as necessary.

For reference, Mario will stop clipping into the platform as it rises once it slows to about $0400. However, I'd recommend lowering it a bit further, to about $0280. Reason for this is that Mario won't interact with the top of the platform while he's rising from a jump, so if it's moving too fast it can overtake him before he starts to actually fall and will still send him inside the platform:



Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Originally posted by Thomas
Code
org $05C902
	db $0800


The $0800 value here is the rising speed as a 16-bit hexadecimal value.

Should be dw instead of db then :p
It's easily the best thing I've done
So why the empty numb?


Whoops, yep, mistyped that. Fixed it.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Awesome!
This was exactly what I was looking for.

Thanks Tomas!