The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Applymovement [Step on the Spot]

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 1st, 2016 (8:41 AM). Edited October 1st, 2016 by Anthroyd.
Anthroyd's Avatar
Anthroyd Anthroyd is offline
Professor
 
Join Date: May 2016
Location: United States
Gender: Male
Posts: 210
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.
__________________
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 1st, 2016 (9:02 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
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".
__________________
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 1st, 2016 (9:22 AM).
Anthroyd's Avatar
Anthroyd Anthroyd is offline
Professor
 
Join Date: May 2016
Location: United States
Gender: Male
Posts: 210
Quote:
Originally Posted by FBI View Post
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.
__________________
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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