Author Topic: [XP][VX][VXA] Fade Room Effect  (Read 8544 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
[XP][VX][VXA] Fade Room Effect
« on: April 13, 2012, 10: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

(click to show/hide)

Script

XP Version

VX and VXA Version

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

  • LiTTleDRAgo

Author's Notes

Beware, this script is not for people with bad math
Enjoy ~
« Last Edit: September 11, 2016, 01:10:52 AM by LiTTleDRAgo »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Fade Room Effect
« Reply #1 on: April 13, 2012, 12:23:09 PM »
Very nice job DRAgo.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Fade Room Effect
« Reply #2 on: April 13, 2012, 03:59:17 PM »
update, now cross engined

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP][VX] Fade Room Effect
« Reply #3 on: April 13, 2012, 11:33:49 PM »
this is a neat little script.

Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP][VX][VXA] Fade Room Effect
« Reply #4 on: May 10, 2012, 07: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.

(click to show/hide)

Am I doing something wrong?
Current Project/s:

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Fade Room Effect
« Reply #5 on: May 11, 2012, 04:50:15 AM »
      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




Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP][VX][VXA] Fade Room Effect
« Reply #6 on: May 11, 2012, 11: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.)



Anything to fix this?

Thanks
« Last Edit: May 11, 2012, 01:17:59 PM by Vexus »
Current Project/s:

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Fade Room Effect
« Reply #7 on: May 11, 2012, 02:28:54 PM »
you can shorten it


Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP][VX][VXA] Fade Room Effect
« Reply #8 on: May 11, 2012, 03:31:05 PM »
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:

(click to show/hide)

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?
« Last Edit: May 11, 2012, 06:00:06 PM by Vexus »
Current Project/s:

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Fade Room Effect
« Reply #9 on: May 11, 2012, 06:09:55 PM »
it's really difficult to explain with words

(click to show/hide)

if it's really confusing, copy your map to empty project with the tileset and upload it

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Fade Room Effect
« Reply #10 on: May 12, 2012, 08:28:03 AM »
script is updated to 1.10
better coding

@Vexus : sent to your PM

Offline Vexus

  • Ethereal Devastator
  • ****
  • Posts: 365
  • LV: 9
    • View Profile
Re: [XP][VX][VXA] Fade Room Effect
« Reply #11 on: May 12, 2012, 09:28:34 AM »
Yes, thanks works great :)
Current Project/s:

Offline Inca

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
  • Gender: Male
    • View Profile
    • Inca's Portfolio
Re: [XP][VX][VXA] Fade Room Effect
« Reply #12 on: November 18, 2012, 03:15:44 PM »
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.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Fade Room Effect
« Reply #13 on: November 19, 2012, 07:00:27 AM »
@^ prpbably you have something that rewrite Spriteset_Map update
try reordering the script

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP][VX][VXA] Fade Room Effect
« Reply #14 on: November 19, 2012, 09: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.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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

Offline Inca

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
  • Gender: Male
    • View Profile
    • Inca's Portfolio
Re: [XP][VX][VXA] Fade Room Effect
« Reply #15 on: November 19, 2012, 12:38:31 PM »
Thank you, Blizzard. Changing Pixel Movement Rate to zero helped to solve my problem.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Fade Room Effect
« Reply #16 on: November 22, 2012, 05:49:19 AM »
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

Offline Inca

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
  • Gender: Male
    • View Profile
    • Inca's Portfolio
Re: [XP] Fade Room Effect
« Reply #17 on: November 22, 2012, 08:14:21 PM »
One thing: the color of square is always 40, 40, 40 no matter i do.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Fade Room Effect
« Reply #18 on: November 23, 2012, 06:52:46 AM »
*fixed*

added demo for V2

Offline Inca

  • Trained Member
  • *
  • Posts: 14
  • LV: 0
  • Gender: Male
    • View Profile
    • Inca's Portfolio
Re: [XP] Fade Room Effect
« Reply #19 on: November 23, 2012, 01:18:50 PM »
Wonderfull! Now everithing work fine! Thank you for your quick support.