Banner
Views: 778,292,576
Time:
3 users online: Darkslayer, errorgfx, WhiteYoshiEgg - Guests: 17 - Bots: 126 Users: 40,825 (1,696 active)
Latest: th3k1ng1337
Tip: Never put a Hammer Brothers Sprite near lava. After being killed, it will still throw hammers until it sinks or goes off-screen.Not logged in.
Graphic routine help
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Graphic routine help
Pages: « 1 »
I want to make a sprite that looks like Mario and so I would load the graphics from page 8. My question is how exactly do I do that? I know I can load from page 1-4 with the property byte, but how would I get the game to put a tile from page 8 on the screen?

We’re looking for level designers to work on Extra Mario World!
page 8 isn't really loadable for sprites.
Not even the Mario sprite itself can load it's graphics from there.
In the game, some DMA transerfs the needed graphics and overwrites part of SP1. To be precise, it overwrites the X and parts of the Nintondo Presents logo.

So, to make your sprite look like Mario, just load tile 00 and 02 from page SP1

--------------------
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
When I do that it uses Mario's current frame. Is there no way to make the sprite use Mario's graphics and still have it animate independently? Other than inserting custom GFX that is...


Thanks for the help btw.

We’re looking for level designers to work on Extra Mario World!
That, not really sorry.
Seeing as that would take up lot's of tiles, you could try making your own DMA, uploading the needed tiles to... well wherever you wanna load them from.
Making DMA, and one that loads from variable destination, you be really tricky though.

Other than that, I'm afraid you're out of luck.

--------------------
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
I guess I'll look into how DMA works and see if I can understand it. If not, I have some really innefficient usage of ROM ahead of me.

We’re looking for level designers to work on Extra Mario World!
DMA works more or less the same way as HDMA does...
So, if you know how that works, you've got a base to improve on ^^.

You could also try google-searching "site:smwcentral.net DMA"

--------------------
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Dynamically uploading graphics to VRAM for a sprite is a fairly well-documented procedure; see this tutorial on dynamic sprites for the code you need.

--------------------
My YouTube channel
Get the official ASMT resource pack here!

Ooooh, that's exactly the kind of stuff I was looking for! Thanks a lot mate!

We’re looking for level designers to work on Extra Mario World!
GFX32 (mario's GFX) should already be in RAM ($7E2000+), so all you have to do is DMA from RAM to VRAM; no ROM needed.

dunno if that's possible via standard dynamic sprite code
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Graphic routine help

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

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


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented