[XP] Extra Fogs & Panorama Lock

Started by Jaiden, October 22, 2019, 01:27:01 pm

Previous topic - Next topic

Jaiden

October 22, 2019, 01:27:01 pm Last Edit: June 22, 2024, 11:18:57 pm by Jaiden Reason: link update
Extra Fogs & Panorama Lock
Authors: Jaiden
Version: 1.0
Type: Mapping Enhancement
Key Term: Environment Add-on

Introduction

This is a script that I've used to enhance XP's mapping even further. It allows for an additional fog that is exclusive to the map ID instead of the tileset, plus an additional two fogs: one drawn as a "lightmap" to add lighting effects and one drawn as a "parallax" (like RMVXA's parallax mapping) to add additional little details to the map like vegetation, etc.

Lastly, there is an option to lock the panorama (background image) of a map so it can also be used as a ground layer, effectively giving you two more layers to work with if you know how to drive it.

Note that you will still need to understand how to make your own parallaxes and lightmaps in GIMP/Photoshop. There are lots of tutorials on this--this script just makes it much easier to apply them.

Features

  • Allows for an additional fog, which is per map instead of per tileset
  • Allows a panorama to lock so it doesn't scroll, allowing it to be used as a ground layer
  • Designated fog for parallax/detail mapping
  • Designated fog for lighting overlay

Screenshots

Nothing to show here, just try the demo if you'd like.

Demo

N/A

Script
Hosted on Github
Place this script above main just as you would any other custom script.


Instructions

Please see the script for instructions, or check out the demo.

Compatibility

This script aliases the Spriteset_Map class. Place it above main like any other custom script.
It hasn't been extensively tested, but should otherwise play nicely with other map scripts.

Credits and Thanks

  • Game_Guy (for helping with the parallax lock)

Author's Notes

I made this script specifically for use in my game Legends of Astravia back in 2019.

It's rather outdated now, so do whatever you'd like with it. It probably has bugs/issues. Credit is entirely optional.

KK20

October 22, 2019, 10:13:58 pm #1 Last Edit: October 22, 2019, 10:22:07 pm by KK20
*adds XP tag and capitalizes header's BBCode*

EDIT: Could have sworn you needed to capitalize the BBCode for the parser to work. Did it break when CP transitioned?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Blizzard

Weird, I could have sworn that, too. O_o
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

goblinhoney

Legends of Astravia is looking really good! I was testing out this script today, but couldn't get it to work. Error adding the script before and after trying to define it for my map. Basically just trying to use one big png as my background for a specific map. The lin kto your demo no longer works, so I wasn't able to troubleshoot to see how you have it set-up. Any chance you could reupload the demo, not sure how else to resolve this undefined fog constant deal.

KK20

Jaiden forgot to add the LOCK_PANORAMA_IDS constant to the script. You can just add it here in the script (and configure it accordingly):
module CustomFogsPanorama
    #--------------------------------------------------------------------------
    # * Constants (Please do not modify)
    #--------------------------------------------------------------------------
    NORMAL = 0
    ADD = 1
    SUB = 2
    #--------------------------------------------------------------------------
   
    # List of map IDs, or put [] if you do not want to use this feature
    LOCK_PANORAMA_IDS = [1, 2, 3]

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!