The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Applymovement [Step on the Spot] (https://www.pokecommunity.com/showthread.php?t=379555)

Anthroyd October 1st, 2016 8:41 AM

Applymovement [Step on the Spot]
 
Hi there,

How can I retrieve the current orientation of the player? For instance: player is facing up, down, left, or right. Unfortunately there isn't a #raw 0x[step on the spot] command that references the current orientation.

Blah October 1st, 2016 9:02 AM

Use the byte at 02036E50.

if it's 0x11, then the player is looking down.
if it's 0x22, then the player is looking up.
if it's 0x33, then the player is looking left.
if it's 0x44, then the player is looking right.

Use a script to copy that byte, compare it, and then do a separate movement for each possibility. Unfortunately, scripting isn't versatile enough to do something like "#raw var".

Anthroyd October 1st, 2016 9:22 AM

Quote:

Originally Posted by FBI (Post 9432281)
Use the byte at 02036E50.

if it's 0x11, then the player is looking down.
if it's 0x22, then the player is looking up.
if it's 0x33, then the player is looking left.
if it's 0x44, then the player is looking right.

Use a script to copy that byte, compare it, and then do a separate movement for each possibility. Unfortunately, scripting isn't versatile enough to do something like "#raw var".

Thank you.


All times are GMT -8. The time now is 9:10 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.