Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: LiTTleDRAgo on April 13, 2012, 04:48:18 am

Title: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on April 13, 2012, 04:48:18 am
Fade Room Effect
Authors: LiTTleDRAgo
Version: 2.00
Type: Environment Add-on
Key Term: Environment Add-on



Introduction

Screenshot explain everything


Features




Screenshots

Spoiler: ShowHide
(http://i.imgur.com/9NLEa.gif)

That screenshot is from my game



Script

XP Version (http://littledrago.blogspot.com/2012/04/rgss-fade-room-effect.html)

VX and VXA Version (http://littledrago.blogspot.com/2013/07/rgss23-fade-room-effect.html)


Compatibility

Should be compatible with everything, even VX-Ace
however, this script is intended for room mapping in RMXP, it may be look weird in VX / VX-Ace


Credits and Thanks




Author's Notes

Beware, this script is not for people with bad math
Enjoy ~
Title: Re: [XP] Fade Room Effect
Post by: G_G on April 13, 2012, 06:23:09 am
Very nice job DRAgo.
Title: Re: [XP] Fade Room Effect
Post by: LiTTleDRAgo on April 13, 2012, 09:59:17 am
update, now cross engined
Title: Re: [XP][VX] Fade Room Effect
Post by: Calintz on April 13, 2012, 05:33:49 pm
this is a neat little script.
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Vexus on May 10, 2012, 01:35:03 pm
This script is nice I think I'll use it on my project.

I was wondering if you could answers some questions which are:

1 - Is it possible to increase the time it takes to fully shade the room?
2 - Is it possible to make the faded room effect "transparent" instead of a solid colour? (Think on making it darker instead of complete black or whatever colour you pick)

Thanks

Also I'm kinda having a small problem, the fading on a specific room (Have tried it on 2 rooms for now.) is not finishing at the end of the grid line or boxes whatever you want to call it but goes over the last grid coordinate written.

Spoiler: ShowHide
(http://img401.imageshack.us/img401/7875/aliveproblem.png)


Am I doing something wrong?
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on May 10, 2012, 10:50:15 pm
      mask[0].opacity = a[0] ? [a[1] - 16, 0].max : [a[1] + 8, 255].min }


1. change 16 and 8 to 5 or lower
2. change 255 to 200 or lower

3. this kind of complicated to explain with my broken english

(http://i.imgur.com/ujeFy.jpg)

Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Vexus on May 11, 2012, 05:49:51 am
Thanks drago the work around works and having the faded rooms a little visible makes them more mysterious imo :)

+1

[Edit]

When the line of code doesn't fit in 1 line the 2nd part of the comment gets ignored ingame :S (Trying to do the same method as your last post but with bigger numbers they take more space making it take 2 lines instead of fitting in 1 line.)

(http://img27.imageshack.us/img27/6924/alivecomment.png)

Anything to fix this?

Thanks
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on May 11, 2012, 08:28:54 am
you can shorten it

(http://i.imgur.com/oU0vm.jpg)
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Vexus on May 11, 2012, 09:31:05 am
Say, I was wondering if I could have 2 brackets of the <{41,14,52,20}> part because I'm kinda making corridors and this specific room is like this:

Spoiler: ShowHide
(http://img252.imageshack.us/img252/5149/alivetestmap.png)


I have the first <{bla bla}> command to make the top left part of the room visible when I'm inside the room but I also need to make another <{bla bla}> so that the last room at the bottom right corner is not faded by the previous room when I enter the bottom room.

Not sure if anything can be done so I'm asking you if it's possible, else I'll edit the map so that the fading in the room doesn't interfere with the bottom right room.

(Been here for a few minutes trying to make some sense in the last few lines lol hopefully it's understandable.)

[Edit]

Btw I was wondering how do the doors open/close automatically in your demo?
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on May 11, 2012, 12:09:55 pm
it's really difficult to explain with words

Spoiler: ShowHide
(http://i.imgur.com/sx6iw.jpg)


if it's really confusing, copy your map to empty project with the tileset and upload it
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on May 12, 2012, 02:28:03 am
script is updated to 1.10
better coding

@Vexus : sent to your PM
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Vexus on May 12, 2012, 03:28:34 am
Yes, thanks works great :)
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Inca on November 18, 2012, 08:15:44 am
Sorry for my little necropost, but i don't want to start new topic.
Has anyone try to use this script with Blizz-ABS? Because i have a problem with it - it acts strange and start to fade out not in the proper conditions. I tested without Blizz-ABS and it works perfectly.
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: LiTTleDRAgo on November 19, 2012, 12:00:27 am
@^ prpbably you have something that rewrite Spriteset_Map update
try reordering the script
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Blizzard on November 19, 2012, 02:21:48 am
I think the only problem is the pixel movement. Have you tried turning it off?

@littledrago: Adding Blizz-ABS pixel movement support is easy. If this turns out to be the issue, just look up in Blizz-ABS how $BlizzABS.pixel is used and apply that. You could also use Game_Character#real_x and Game_Character#real_y as those are unchanged in Blizz-ABS unlike Game_Character#x and Game_Character#y.
Title: Re: [XP][VX][VXA] Fade Room Effect
Post by: Inca on November 19, 2012, 05:38:31 am
Thank you, Blizzard. Changing Pixel Movement Rate to zero helped to solve my problem.
Title: Re: [XP] Fade Room Effect
Post by: LiTTleDRAgo on November 21, 2012, 10:49:19 pm
script updated, added support for blizz-abs pixel movement

btw, now that I think about it, I think it will be weird if used in room mapping on VX or VX-Ace
Title: Re: [XP] Fade Room Effect
Post by: Inca on November 22, 2012, 01:14:21 pm
One thing: the color of square is always 40, 40, 40 no matter i do.
Title: Re: [XP] Fade Room Effect
Post by: LiTTleDRAgo on November 22, 2012, 11:52:46 pm
*fixed*

added demo for V2
Title: Re: [XP] Fade Room Effect
Post by: Inca on November 23, 2012, 06:18:50 am
Wonderfull! Now everithing work fine! Thank you for your quick support.
Title: Re: [XP] Fade Room Effect
Post by: LiTTleDRAgo on December 03, 2012, 12:48:10 am
*script updated*

fix can't dup nil class problem