Banner
Views: 844,846,949
Time:
30 users online: 92lucascosta, ageVerrly, Ambureon, Andyana Jonseph,  Anorakun, Aurel509, chickaDEE Magazine, Chosentw0, Cote de Boeuf, cozyduck,  Deeke, elieltonl, EnzoLipe1, Far, G3rminho, h.carrell, imamelia, Knight of Time,  Koopster, Kusrry,  Linkdeadx2, Lucyvaine, Lumy,  Maxodex, ModernKiwi,  Ninja Boy, Qwerty13x, SammmUuU, SubconsciousEye,  Tahixham - Guests: 78 - Bots: 81 Users: 46,458 (2,749 active)
Latest: AutonomousAnonymous
Tip: Bad things to do in the title demo: Enter a door or a pipe, activate a P-switch or a star, complete the level, hit a message block, or die. These will either glitch the music, or force the player into an endlessly looping title level until they reset the game.Not logged in.
Layer 2 Smash problem
Forum Index - SMW Hacking - SMW Hacking Help - Layer 2 Smash problem
Pages: « 1 »
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

--------------------
Legião Urbana - A Tempestade (1996)


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!
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Layer 2 Smash problem

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

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy