LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

SPANIM overrides SPHOME

Root / Programming Questions / [.]

ProgramGamerCreated:
Self explanatory enough, whenever I use SPANIM it resets SPHOME to (0,0), and I don't know why. I guess I can fix it by calling SPHOME each time I call SPANIM, but that gets tedious, especially for something that should not even happen in the first place.

Are you using sprite definition numbers for the animation? Those include SPHOME data. You might want to change the sprite definitions with SPDEF. Though, adding 2048 to most definition numbers will get an equivalent with a centered home, which may or may not be what you want. You can check the SMILE tool to see the default home positions.

...Ah. Ironically, I recently explained what definition numbers were to another user, without realizing that SPANIM used those to begin with. Thank you, this has helped me a lot and I will make good use of this knowledge.