News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

MZM samus' starting location

Started by DestroyedChozo, December 04, 2017, 07:36:06 PM

Previous topic - Next topic

DestroyedChozo

The title says my question, how would I change Samus' starting location I.E. the room and where in the room

Cpt.Glitch

[spoiler=How to do]Q: How do I change the starting position? (ZM)
A: This questions explains how to change the X/Y position Samus' spawns at on Start Game. To change starting area/room, use this asm file: https://cdn.discordapp.com/attachments/280756187522400257/286241312905232386/ZM_U_startingRoom.asm
Samus starting X position is aligned with door 0 for the area. So, door 0 must be in the room you wish Samus to start in. Y position is determined by this two byte address 0x606CC. So open a hex editor to that address and change the existing value to your new value. To find your Y position value use this formula: (64n-1) N is the height in blocks you want Samus to start at. Use the Y value in MAGE to get N. After you perform the equation, convert the answer to hex. You can use the programmer mode calculator on your PC or Google to convert. Once you get
your hex value, reverse the bytes, and then replace the old value at 0x606CC. For example if your value is 027F, reversing it will make it 7F02. make sure to save the changes in your hex editor.
[/spoiler]
I suggest you look here and on the mage docs for questions before making a thread. You can ask things in the metconst discord #gbatroid channels as well.

DestroyedChozo

I'm not on the GBAtroid discord channel, also thanks for the help