• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[pokefirered] Making fogs appear above the map and the player

  • 1
    Posts
    1
    Years
    • Seen yesterday
    In vanilla firered, we see the weather WEATHER_FOG_HORIZONTAL is drawn below NPCs, and below the foreground for double layered tiles. Is there a way to make the fog appear above all the person events and all the tiles?

    I tried changing .priority = 2 to .priority = 0 in sOamData_FogH in src/field_weather_effects.c. It makes the fog appear on top just like I wanted, but now the player sprite is invisible when player enters the map with the fog. Is there any other way to do what I want? Or should I change something else in my current method to make the player not invisible?
     
    In vanilla firered, we see the weather WEATHER_FOG_HORIZONTAL is drawn below NPCs, and below the foreground for double layered tiles. Is there a way to make the fog appear above all the person events and all the tiles?

    I tried changing .priority = 2 to .priority = 0 in sOamData_FogH in src/field_weather_effects.c. It makes the fog appear on top just like I wanted, but now the player sprite is invisible when player enters the map with the fog. Is there any other way to do what I want? Or should I change something else in my current method to make the player not invisible?
    You can't draw the player under the fog, because the fog and player are both sprites and the GBA hardware doesn't support alpha-blending sprites together. However, you can create the illusion of the fog being above the player by using this modification from pokeemerald's wiki.
     
    Back
    Top