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)
-   -   Script Player Facing (https://www.pokecommunity.com/showthread.php?t=412314)

Lance Koijer 2.0 August 5th, 2018 3:19 AM

Player Facing
 
Good Day PC. I don't know if this has been documented before or not. Is there a RAM address or specific command that lets you check which position the player is facing?

Blah August 6th, 2018 3:48 AM

Quote:

Originally Posted by Lance Koijer 2.0 (Post 9910539)
Good Day PC. I don't know if this has been documented before or not. Is there a RAM address or specific command that lets you check which position the player is facing?

Variable 0800C is updated in FR what the player presses the A-button (so when they interact with an NPC). Otherwise, use the npc_states property to figure it out.

Lance Koijer 2.0 August 6th, 2018 5:29 PM

Quote:

Originally Posted by FBI (Post 9910853)
Variable 0800C is updated in FR what the player presses the A-button (so when they interact with an NPC). Otherwise, use the npc_states property to figure it out.

I found it now!
It's in 0x2036e50.
Code:

0x11 - Down
0x22 - Up
0x33 - Left
0x44 - Right



Thanks for the advice!


All times are GMT -8. The time now is 9:13 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.