Map Effects

MikePjr

Artist
Veteran
Joined
Nov 7, 2012
Messages
758
Reaction score
468
First Language
English
Primarily Uses
Any possible way this can be used for transitions between maps, or even for battles?

And i think i am using the script wrong or something.

I keep getting an error when i try to use the script.



Plus, it's not made clear if i am supposed to use a comment call or the script call.

Some scripts use the comment call method.

I am using the script call method, but it shows that error above.
 
Last edited by a moderator:

AlaiaVee

Villager
Member
Joined
Mar 14, 2012
Messages
76
Reaction score
21
First Language
English
Primarily Uses
This looks pretty damn cool! Gonna have to try it out!
 

MikePjr

Artist
Veteran
Joined
Nov 7, 2012
Messages
758
Reaction score
468
First Language
English
Primarily Uses
Okay i figured out the error.

You put calculate_value, and you needed it to say calculate_next_value on the lines of the error.

If anyone else has the problem at line for @pixelize2 = calculate_value(value, target_value, duration)

Replace it with @pixelize2 = calculate_next_value(value, target_value, duration)

Had the same error with zoom, i had to change a line to be "calculate_next_value" again.
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Oops, it seems my refactoring wasn't very well done.

I've fixed it, thanks.
 

Redeye

Chronicles Creator
Veteran
Joined
Jun 21, 2013
Messages
436
Reaction score
249
First Language
English
Primarily Uses
This script looks pretty cool.

And the video made my eyes hurt a bit.
 

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,158
First Language
English
Primarily Uses
N/A
This looks amazing. Fantastic job! I'm so looking forward to trying this in my game.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,097
Reaction score
15,402
First Language
Filipino
Primarily Uses
RMMZ
Will it be alright to include the video project file as a demo? It's just a personal preference of mine to see what I'm doing wrong just in case ;w;

I have issues activating stuff unless I see them in action orz.
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
ok : https://www.dropbox.com/sh/cajvk3wf6ue0ivf/QA9zgrm2Vx

Any possible way this can be used for transitions between maps, or even for battles?
I forgot to reply to this.

For transition between maps, I think the simplest way to do it is :

Script : map_effects.set_pixelize(4000, 60)

Wait : 60 frames

Script : map_effects.set_pixelize(100, 60)

Transfer Player : No transition

For battle transition it's not actually possible, maybe I'll do an update for that but it would require scripting.
 

MikePjr

Artist
Veteran
Joined
Nov 7, 2012
Messages
758
Reaction score
468
First Language
English
Primarily Uses
ok : https://www.dropbox.com/sh/cajvk3wf6ue0ivf/QA9zgrm2Vx

I forgot to reply to this.

For transition between maps, I think the simplest way to do it is :

Script : map_effects.set_pixelize(4000, 60)

Wait : 60 frames

Script : map_effects.set_pixelize(100, 60)

Transfer Player : No transition

For battle transition it's not actually possible, maybe I'll do an update for that but it would require scripting.
Thanks, i figured out how to use them as transitions, i already remade transitions used in old Final Fantasy games.

But it would be AWESOME for transitions to battles.
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Update : http://pastebin.com/raw.php?i=e5Utrt6x

Code:
 Log Change :    1.3 :      - fixed display bug related to screen tone      - fixed display bug related to shake screen      - new function to memorize effects : map_effects.memorize      - new function to restore memorized effects : map_effects.restore      - new function to reset effects : map_effects.clear      - added quick overview of functions below
And an example of a script to replace battle transitions with an effect :
Code:
class Scene_Map  alias perform_battle_transition perform_transition  def pre_battle_scene    BattleManager.save_bgm_and_bgs    BattleManager.play_battle_bgm    Sound.play_battle_start    $game_map.effects.set_pixelize(4000, 60)    60.times {update_for_fade}    $game_map.effects.set_pixelize(100, 30)    Graphics.freeze  endend
 

MikePjr

Artist
Veteran
Joined
Nov 7, 2012
Messages
758
Reaction score
468
First Language
English
Primarily Uses
It works, but there is a problem.

When the battle is over the game crashes and asks if i want to send an error report.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,097
Reaction score
15,402
First Language
Filipino
Primarily Uses
RMMZ
Hey Zeus, I was just wondering, is it possible for this to invert the map colors?

(And just a random thought, Another script that does the same to pictures (and not map) would be awesome!)
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,097
Reaction score
15,402
First Language
Filipino
Primarily Uses
RMMZ
I meant to say Zeus but Idk why I said VLUE XD

Although, now that you mention it, I remember KGC's TRGSSX. It did added a lot of new functions in RM so I thought the graphical functions added was native to it.

I rather avoid that script too for various reasons XD
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
It's not complicated either, but doing it in ruby would be too slow and creating a dll just for that is not worth it.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,838
First Language
English
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Thanks Tsukihime.
I've tried doing it and well, it's a bit slow, this dll doesn't seems to be that optimised. :/
But if you reduce the refresh_rate it kinda works.
To use it you have to add all the Bitmap Ex scripts and dll to your project and this addon bellow Map Effects :

Code:
class Game_Map_Effects  attr_accessor :invert_colors  alias addon_clear clear  def clear    addon_clear    @invert_colors = false  end  alias addon_active? active?  def active?    @invert_colors or addon_active?  endendclass Spriteset_Map_Effects  alias addon_refresh_bitmap refresh_bitmap  def refresh_bitmap    addon_refresh_bitmap    @effects_bitmaps[0].reversing! if @data.invert_colors  endend
 

Roxas162

Game Designer
Veteran
Joined
Sep 19, 2013
Messages
33
Reaction score
1
First Language
English
Primarily Uses
LOL that video made me feel high! But it looks amazing! Im definitely gonna use this
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

This video really speaks to me...

Stream will be live shortly with a session of the interactive text adenture! Feel free to drop by!
I worked a lot more today and I am thinking about Youtube videos to make to my channel, but I am still looking for some content :D

But I am happy to be back at work :D
Update... no scam calls all day. I think they learned their lesson. And I'm working on a fake anti-piracy video, featuring a fan game I'm making in MV. If I had the permission to make the game a licensed game that I could sell (rather than having it totally free like fan games are required to be), I'd use a really cool anti-piracy screen...

Forum statistics

Threads
104,363
Messages
1,005,856
Members
135,881
Latest member
ResiFrog
Top