estriole 326 Posted November 27, 2015 (edited) â– Information â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› EST - Event Graphic Shift Version: 1.5 By Estriole File name: EST_Event_Graphic_Shift.js â– Introduction â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Have charset that need the graphic to be shifted by x pixel? for example a building with the door not exactly in the middle of the event graphic. just use this plugin â– Features â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› - shift graphic x - shift graphic y - shift graphic z - flip graphic horizontally - flip graphic vertically - rotate graphic â– Changelog â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› older changelog inside spoiler v1.0 2015.10.29 Initial Release v1.1 2015.10.30 improved regexp so we can also use , to separate the x and y fix bug when erasing event. v1.2 2015.11.01 - fix crash when no event page met condition... v1.3 2015.11.12 - add z to the graphic shift. so you can make event that on top of other event. fix regexp so it recognize <graphic_shift: 1,2,3> (coma without spaces) v1.4 2015.11.23 - ability to flip / rotate the graphic. using comment tag: <graphic_flip_h> => flip graphic horizontally <graphic_flip_v> => flip graphic vertically <graphic_rotation: x> => rotate graphic by x degree ability to flip / rotate the graphic using script call / plugin call: script call: this.thisEventChangeFlipH(true); //=> will flip graphic horizontally this.thisEventChangeFlipH(false); //=> will cancel flip graphic horizontally this.thisEventChangeFlipV(true); //=> will flip graphic vertically this.thisEventChangeFlipV(false); //=> will cancel flip graphic vertically this.thisEventChangeRotation(x); //=> will rotate graphic by x degree plugin call: this_event_change_fliph true //=> will flip graphic horizontally this_event_change_fliph false //=> will cancel flip graphic horizontally this_event_change_flipv true //=> will flip graphic vertically this_event_change_flipv false //=> will cancel flip graphic vertically this_event_change_rotation x //=> will rotate graphic by x degree v1.5 2015.11.23 - ability to change graphic offset x and y using scriptcall / plugin call: script call: this.thisEventChangeOffsetX(value); //=> will set offset x to value this.thisEventChangeOffsetY(value); //=> will set offset y to value plugin call: this_event_change_offsetx value; //=> will set offset x to value this_event_change_offsety value; //=> will set offset y to value â– Plugin Download â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› DOWNLOAD â– Demo â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Demo Download (All EST - Build And Decor Series Conversion plugin will share same dropbox demo) â– How to use â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› see spoiler add Comment at the event page you want the graphic to shift <graphic_shift: offsetx offsety offset z> example: <graphic_shift: 32 -32, 2> <graphic_shift: 32, -32> (from v1.1 this work too) <graphic_shift: 32 , -32> (from v1.1 this work too) <graphic_shift: 32 ,-32> (from v1.1 this work too) will shift the graphic x by +32 pixel (go to right 32 pixel) will shift the graphic y by -32 pixel (go to down 32 pixel) will shift the graphic z by adding 2 z level so it will be on top of event with lower z value tips by default event z = event priority type * 2 + 1 > below character = 0 => 0*2+1 = 3 > same as character = 1 => 1*2+1 = 3 > above character = 2 => 2*2+1 = 5 > [Tile] Event (ignore above 3 setting) = 0 => 0*2+1 = 1 so if you add 2... the final z level will be added by value from default event z if you want to reduce z level. use negative value. some z level references: shadow = 6 balloon = 7 animation = 8 mouse destination sprite = 9 source : rpg_sprites.js if you only want to shift x value you could do fine with not entering the offsety value or offset z. example: <graphic_shift: 32> > new comment tag for flipping / rotating event graphic give comment tag: <graphic_flip_h> => flip graphic horizontally <graphic_flip_v> => flip graphic vertically <graphic_rotation: x> => rotate graphic by x degree > ability to flip / rotate the graphic using script call / plugin call: script call: this.thisEventChangeFlipH(true); //=> will flip graphic horizontally this.thisEventChangeFlipH(false); //=> will cancel flip graphic horizontally this.thisEventChangeFlipV(true); //=> will flip graphic vertically this.thisEventChangeFlipV(false); //=> will cancel flip graphic vertically this.thisEventChangeRotation(x); //=> will rotate graphic by x degree plugin call: this_event_change_fliph true //=> will flip graphic horizontally this_event_change_fliph false //=> will cancel flip graphic horizontally this_event_change_flipv true //=> will flip graphic vertically this_event_change_flipv false //=> will cancel flip graphic vertically this_event_change_rotation x //=> will rotate graphic by x degree > ability to change graphic offset x and y using scriptcall / plugin call: script call: this.thisEventChangeOffsetX(value); //=> will set offset x to value this.thisEventChangeOffsetY(value); //=> will set offset y to value plugin call: this_event_change_offsetx value; //=> will set offset x to value this_event_change_offsety value; //=> will set offset y to value â– Dependencies â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› None â– Compatibility â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› I'm new in JS... and MV is new engine... so i cannot say for sure. but it should be compatible with most things. â– Parameters â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› None â– License â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Free to use in all project (except the one containing pornography) as long as i credited (ESTRIOLE). â– Support â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› While I'm flattered and I'm glad that people have been sharing and asking support for scripts in other RPG Maker communities, I would like to ask that you please avoid posting my scripts outside of where I frequent because it would make finding support and fixing bugs difficult for both of you and me. If you're ever looking for support, I can be reached at the following: [ www.rpgmakervxace.net ] pm me : estriole â– Author's Notes â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› This is part of the EST - DECOR AND BUILD SERIES. EST - SAVE MAP EVENTS EST - CLONE TRANSFORM DELETE EVENT EST - EVENT GRAPHIC SHIFT EST - EVENT SIZE AND TRIGGER EST - BUILD AND DECOR EX EST - REGIONMAPLOADER Edited November 27, 2015 by estriole Share this post Link to post Share on other sites