Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,493,717
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-27-24 07:04 PM
Guest: Register | Login

0 users currently in SMW Hacking | 1 guest

Main - SMW Hacking - Custom Sprite help New thread | New reply


Remnic The Hedgehog
Posted on 08-27-07 10:18 PM (rev. 2 of 08-27-07 10:19 PM) Link | Quote | ID: 63953


Chasupa
Level: 56

Posts: 266/675
EXP: 1379158
Next: 19018

Since: 05-23-07
From: Kickapoo, Missouri

Last post: 5174 days
Last view: 5182 days

This is my first attempt at making my own custom sprite for SMW but I don't quite know what I should do.


I'm making my own 32x32 Boo sprite, I have the disassembly and trying to compare with the anti_boo.asm file but it's just confusing me. I don't know what code I should imput in the .asm file to make the sprite use 32x32 size and to fix the Anti Boo's chasing Mario's action so that it chases him normally. Can anyone give me some pointers or some help?

EDIT: I forgot to add this part too. And point the tiles used when it "hides itself from Mario when being stared at.

____________________


smwedit
Posted on 08-27-07 10:30 PM (rev. 2 of 08-27-07 10:31 PM) Link | Quote | ID: 63956


Goomba
Level: 14

Posts: 1/27
EXP: 10995
Next: 2076

Since: 07-03-07

Last post: 5822 days
Last view: 5033 days
To make the sprite 32x32, you're going to have to write 4 tiles. Use the section of code that copies tiles to the sprite OAM 4 times and subtract/add (whatever's necessary) values of $10 (16) for the proper offsets on the screen.

Example:

[for tile 1]
X: SPRITE X OFFSET
Y: SPRITE Y OFFSET

[for tile 2]
X: SPRITE X OFFSET + $10
Y: SPRITE Y OFFSET

[for tile 3]
X: SPRITE X OFFSET
Y: SPRITE Y OFFSET + $10

[for tile 4]
X: SPRITE X OFFSET + $10
Y: SPRITE Y OFFSET + $10

just translate this into ASM with the tutorials that come with sprite tool

Remnic The Hedgehog
Posted on 08-27-07 10:58 PM Link | Quote | ID: 63965


Chasupa
Level: 56

Posts: 268/675
EXP: 1379158
Next: 19018

Since: 05-23-07
From: Kickapoo, Missouri

Last post: 5174 days
Last view: 5182 days

Thanks for the routine codes but I'm going to have a rough time coding this into the .asm file.

____________________


Main - SMW Hacking - Custom Sprite help New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 47, rows: 69/70, time: 0.015 seconds.