HackJam voting closes in
Views: 961,095,504
31 users online: Aeon, ageVerrly, Alex No,  Anorakun, bandicoot, BoomBeatle3, brickblock369, Children's Digest 1950-2009, Dark Prince, Fullcannon, Gmario37, Green Jerry, GrumpyWalrus, guanna, Infinity, kingofett, Koop the Koopa, Luis Darskt, Macrophaje,  MarkAlarm, MassPunishment, ninj, Ralshi02, random_box, Rykon-V73, Sillywillyu, solgaleo35, Steffi4689,  Tahixham, UTF, Wuzzy - Guests: 97 - Bots: 103 Users: 53,195 (2,293 active)
Latest: jjnanobot22
Tip: The No More Sprite Tile Limits patch does NOT increase the limit for the amount of sprites onscreen at once. The SA-1 Pack does.
Not logged in.
Conveyer and Jump block by Scoutellite
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Conveyer and Jump block by Scoutellite
Pages: « 1 » Link
File Name: Conveyer and Jump block
Submitted: by Scoutellite
Authors: Scoutellite
Act As: 130
Includes GFX: Yes
Description: (Insert it with Gopher Popcorn Stew)

The conveyer block is a block that will give you a push to Mario's max speed when running. Your direction while running can still be changed.
The jump block makes Mario do a small jump, a bit less than a Banzai Bill, but will also permit Mario to fly if he holds Y! You should note that the jump block on himself already gives a boost to Mario, so you don't need to add conveyer blocks.
Jump blocks make a little sound when they launch Mario.

The block give their effect when Mario is above them.
While these blocks work fine, looking at the code it becomes apparent that they are just made in Blockreator. The issue being that the code has good room for optimization.

In the conveyor block, something like this:
    BMI Label_0001                ; /
    LDA #$BC                ; \ Set the player's x speed to -68.
    STA $7B                    ; /
Label_0001:                    ; > ----------------
    BRA Label_0002

Can be optimized by changing the BMI to point directly to Label_0002 instead of going through an intermediate branch.

The jump block has even more room for optimization. The code that plays the sfx is present twice, once for facing left and once for facing right, when they could be combined. You could also load the player's direction ($76) into X and then use indexing to combine the LDA/STA lines that set the player's speed. Feel free to shoot me a PM if you want some more insight and help optimizing your code.

Also, instead of static screenshots, animated gifs of the blocks are preferred. Not a removal reason, but it would be nice.
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - Blocks - Conveyer and Jump block by Scoutellite

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

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Super Mario Bros. X Community
  • Mario Fan Games Galaxy
  • sm64romhacks