• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[ASM & Hex] Changing OAM priority? (Fire Red)

13
Posts
7
Years
    • Seen Sep 12, 2019
    Hi all,

    I'm currently hacking weather and I'm attempting to improve how fog looks. Right now, fog only covers the bottom layers of tiles. If you've tried to use fog in Fire Red yourself you'll probably know what I'm talking about -

    Changing OAM priority? (Fire Red)


    This is because the priority of the fog OAM is set to 2 (same as an NPC's overworld sprite) so it is covered by the top layers of tiles. Below is a screenshot of sandstorm, for comparison -

    Changing OAM priority? (Fire Red)


    As you can see, the priority of the sandstorm OAM is set to 1 so it appears above the tops of trees and overworld sprites. If it is possible to change the priority of the fog OAM to 1, we could make fog look a whole lot better than it does currently. Does anyone know how OAMs function and how I could edit how they work? Though I have a feeling this might be impossible as fog graphics use transparency and others like rain and sandstorm do not.

    Thought it was worth asking anyway though. Any help on OAMs in general is appreciated. Thank you!
     
    Last edited:

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • Hi all,

    I'm currently hacking weather and I'm attempting to improve how fog looks. Right now, fog only covers the bottom layers of tiles. If you've tried to use fog in Fire Red yourself you'll probably know what I'm talking about -

    Changing OAM priority? (Fire Red)


    This is because the priority of the fog OAM is set to 2 (same as an NPC's overworld sprite) so it is covered by the top layers of tiles. Below is a screenshot of sandstorm, for comparison -

    Changing OAM priority? (Fire Red)


    As you can see, the priority of the sandstorm OAM is set to 1 so it appears above the tops of trees and overworld sprites. If it is possible to change the priority of the fog OAM to 1, we could make fog look a whole lot better than it does currently. Does anyone know how OAMs function and how I could edit how they work? Though I have a feeling this might be impossible as fog graphics use transparency and others like rain and sandstorm do not.

    Thought it was worth asking anyway though. Any help on OAMs in general is appreciated. Thank you!

    Do you have any actual function addresses? Or the address for the fog weather graphic? I can help you if you provide either.
     
    13
    Posts
    7
    Years
    • Seen Sep 12, 2019
    I think so - It looks like the fog weather routine is at 7C990. It's the function called by the weather_funcs table at 3C2BBC.
     

    Blah

    Free supporter
    1,924
    Posts
    11
    Years
  • @FBI This causes everything to dissapear including the menue.

    The text should still work and the fog should be above everything in an english FR rom. But you'll observe that the player and other overworlds are rendered invisible. This is because they're on the same OAM layer without the semi transparent flag enabled.
     
    Back
    Top