Views: 853,070,830
27 users online: ageVerrly, anonimzwx, CalHal, Cartesius, dubiousdinobot,  FPzero, GbreezeSunset, goldenrules, h.carrell, HammerBrother, Jazzman287, josee_544, Katrina, MarioriaM, MassPunishment, Minish Yoshi,  Ninja Boy, Noobtella, Ralshi02, Sokobansolver, supermargot, TheGlove99, TickTockClock, Wyatt, Zaroio, zeeck, Zerio - Guests: 59 - Bots: 63 Users: 47,050 (2,524 active)
Latest: Amethyst
Tip: Avoid blind jumps. If the player has to jump down a random hole to proceed with no indication at all that they can go down there, you've done something wrong!Not logged in.
imamelia's ASM stuffses (1 patch & 1 sprite)
Forum Index - Sunken Ghost Ship - C3 Museum - Fall 2009 - imamelia's ASM stuffses (1 patch & 1 sprite)
Pages: « 1 »
Hi, people. Welcome to my C3 thread. I actually have something vaguely interesting to show off this year, too. (Heck, I had it ready about two weeks in advance.) While I haven't been doing nearly as much ASM lately as I should be, I managed to turn out these two things, anyway. The coin came up heads, so I am fairly and squarely posting this on the first day.

<object width="425" height="344"><param name="movie" value=""></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

This is a sprite I made; it displays a timer on the status bar. You can set in the .asm file where the timer shows up. If the extra bit is clear, the timer will tick down, but if the extra bit is set, it will start at zero and go up. In the former case, the X/Y position of the timer determines the starting time it will have. Its position can also be used for another thing: setting effects. Effects, in this case, are subroutines that run when the timer reaches 00:00:00. You can see some of them in the video; it can kill the player, teleport him, set the blue P-switch timer...there are lots of possibilities. You can even make your own effects!

Also, big thank-y's from McSpanky's thanks to Roy and Smallhacker for helping me debug this. Thanks to Smallhacker and his wise words about the data bank, I ironed out the last remining error in this sprite. By the way, yes, this sprite was inspired by Iceguy's timer, the one he released last C3. But "inspired by" and "based off of" are two different things; I actually pretty much coded this one from scratch. Still, credit to Iceguy anyway for giving me the idea.

<object width="425" height="344"><param name="movie" value=""></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

This is a patch I call "Item Box Special". It does several things to the item box. I integrated the Item Box GFX Fix patch (credit to Kenny3900) and my Stunned Item Box Items patch into this, for starters. I also added a few small hacks that disable the item falling when you take damage (simple hex edit) and prevent the item from being overwritten by another if you get a powerup when the item box is not empty (not quite as simple). You can also, on the fly, disable the item from dropping. If, for example, you want the player to be unable to use the item box item for a specific sublevel, you can write a non-zero value to the specified RAM address, and the item will stay put no matter how many times you press Select or any other button. (Just make sure you reset it back to 00 afterward.)

The most IMPORTANT function of this patch, however, and the only one I really showed in the video (dang it, forgot to show the disabled item drop and the overwrite prevention), is that you can put custom sprites in the item box. You know how values 56-8C are normally unusable? Well, I hijacked the routine so that these values instead represent custom sprites. You can set the sprite number, extra bits, sprite status, everything. I had already hijacked the item box drop routine for Stunned Item Box Items, and when doing so, I noticed something interesting: the item box drop routine seemed to be just an ordinary sprite-spawning routine, nothing fancy. So it wasn't hard to tweak it to spawn a custom sprite. In fact, making this patch was freakishly easy...not that it was "easy", but that I didn't need any help from anyone else, unless you count my beta testers and Smallhacker's indirect help. Coincidentally enough, the problem I had with the data bank in the timer sprite came into play when making this patch as well.

Download links:
Item Box Special

Yeah, that's what I have to show for C3. Yay and stuff.
Wow that timer is exacly what I was going to make for my 3rd hack. Great job on it. Actually great job on everything. You rock!


I am impressed imamelia. With these two ASM hacks, there could be SO many different possible design choices you could do. My only suggestion on the Special Item Box is you should make the hammer and boomerang fall like a mushroom/fire flower/cape would, when you press select.
Also, one time when you got a chomp rock up in your box, it was a bunch of light blue dots instead.

Still, all this stuff is simply amazing. I love it.

IRC Quotes (March 20th update!)

/MKICK 4: Flantastic Puns
Kristian: Actually, the reason the hammer and boomerang don't fall is because the sprites themselves never set any Y speed. If I use those in my hack, I'd add something like LDA #$10 STA $AA,x to those two powerups' init routines. As for the Chomp Rock, the blue dots, I'm sure, were because the Chomp Rock is a dynamic sprite. (They have a different, weird way of drawing graphics.) So dynamic sprites probably aren't the best choice for the item box.
I believe I heard you say something about a timer while talking with you yesterday, imamelia.
Great job on both of them. Pretty cool stuff.

Be a cool person and check out this thread and comment on it!
There's custom dimensions and really neat sorcery you can enjoy!
Scrydan does Datapack things to Minecraft - 1.16 Minecraft Java Datapack Requests

Minecraft Randomizer: Scrycrafter
Let me just say, (since I've been using the patch for awhile now), that itemboxspecial.asm it quite an amazing idea, and very useful for hacks that want unique powerups.
Both of these are great! Anyway, can you set the timer to go up, then cause an effect when the timer reaches a certain number? That would be great!
Thanks for the comments, guys.

Magikoopa24: Yeah, that would be possible, although checking the timer for a certain number would be a little more complex than just checking it for 00:00:00. What I'd do is make three tables, one for the frames, one for the seconds, and one for the minutes. (Or only two, if the frames don't matter.) Then I'd load the effect index, $1528,x, into Y, and check first the seconds and then the minutes to see if they are equal to the value in the table indexed with Y. (For example, LDA !Seconds CMP NeededSeconds,y BNE NoEffect.) Then...well, the rest would just be pretty much the same thing as the other effect subroutine.
The custom item box stuff is really cool.

But do you have to use the four blue squares, or was it just easier for you?
Awesome. That custom sprite item box hack is JUST what I needed for my hack, and that timer is looking pretty great too! Good work.

/me adds imamelia's entry on my list of people to vote for this C3. ;D
That first video game me an idea... I spent a long time writing a detailed description of this idea, but decided to remove it, realizing that people might steal it.
I really think you should make the timer go up instead of down ;)

But yea, awesome stuff.
The new item box gave me a great motivation to make a level with this stuff. But actually, awesome works imamelia! Since I absolutely have no idea, how to make these, they're fantastic for me, and can't wait to try it by myself! I'll do it in a few days, I'm sure. :)
So, very thanks for making this, and I hope, we'll get more awesome stuff from you.
oh wow, this is awesome! You've done a great job, I applaud you! I hope to see some good uses out of these!

World Community Grid: Thread | Team
crobat231985: Yeah, I just didn't bother to add graphics to the blocks.

Jimmy52905: sweet...ahem. Well, I'm glad it will be useful to you.

Smallhacker: muffins (er, I mean, I am curious about that idea...)

Atma: As I said on IRC, setting the extra bit makes the timer go up, no matter what its XY position is. Too bad you had to turn traitor on me and use Iceguy's pause menu instead of the item box patch. That may be a heck of a lot cooler, but mine is easier to use! *shot* I'm glad you like them, anyway.

Hadron and Ultimaximus: Heh, thanks. I don't know, though...those the only things I had to show off for C3, and while they're both ASM-related, they are piddling compared to most of the other ASM stuff people have made. Well, in any case, I certainly hope people will get some good use out of these. I also definitely hope to make lots more ASM stuff in the future, and I imagine most of it will be for the public.
Pages: « 1 »
Forum Index - Sunken Ghost Ship - C3 Museum - Fall 2009 - imamelia's ASM stuffses (1 patch & 1 sprite)

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


Follow Us On

  • YouTube
  • Twitch
  • Twitter


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