The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: D&P3 on September 06, 2012, 10:39:11 AM

Title: Battle Parallax Background
Post by: D&P3 on September 06, 2012, 10:39:11 AM
Battle Parallax Background
Version: 1.0
Author: DiamondandPlatinum3
Date: September 6, 2012



Planned Future Versions

Description

This script allows you to use a parallax as a background for your battles. It also allows you to scroll the parallax like any regular map parallax.

Features


Screenshots

Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1169.photobucket.com%2Falbums%2Fr519%2Fdiamondandplatinum3%2FBattleParallaxScreenShot.gif&hash=eee63abc4626ef7cbb03c8243fd6b449f98176d6)


Instructions

Script


Get it from here (http://www.diamondandplatinum3.net/rpg-maker-scripts/rgss3-vxa/battle-scripts/battle-parallax-background/)

Credit




Thanks




Support


Post in this thread or PM me.

Known Compatibility Issues
I am unaware of any scripts it doesn't work with; if you find any, post in this thread.

Demo


Check the attachments.

Author's Notes

My first script using attr_accessors and regexp, hoping I did a good job...

Terms of Use


You may find my Terms of Use Here (http://www.diamondandplatinum3.net/rpg-maker-scripts/terms-of-use/)
Title: Re: Battle Parallax Background
Post by: pacdiggity on September 06, 2012, 01:36:29 PM
Your regexp and attrs look fine, but you should probably look into aliasing some of those methods (by which I mean Spriteset_Battle#initialize, dispose, update).
Title: Re: Battle Parallax Background
Post by: D&P3 on September 06, 2012, 02:01:46 PM
I couldn't figure out how to alias it without getting it to call the functions related to the Battlebacks (which this script is supposed to replace).
Any tips for that? :)
Title: Re: Battle Parallax Background
Post by: pacdiggity on September 06, 2012, 09:09:07 PM
You could alias the initialize, update and dispose methods, and simply create the battlebacks as empty bitmaps so it still works. You would do that by redefining (you could probably even alias, but there wouldn't be much point) the method that creates the battlebacks.
Title: Re: Battle Parallax Background
Post by: D&P3 on September 07, 2012, 06:55:40 AM
Done. Thanks for the advice Pacman :)