DELSIN7S SCREENSAVER WINDOW

Allows the creation of windows with scrolling animated sprites and background colors

  • Delsin7
  • 03/08/2021 07:51 AM
  • 947 views
Allows the creation of windows with scrolling animated sprites and background colors! Use in cutscenes, battles, and more! Does not require other plugins and should be compatible with any unless they alter Window_Base functions.

How to use:

To create a screensaver window use:
Use a Script Event and use D7S.createScreensaver();
This will create a basic screensaver using the default
parameters.

To create one using custom parameters add any or all
of the following inside curly brackets { } and separate
with commas, ex. {sName:"tim",spriteCount:500}.

sName : "name here" this is the identifier name for the individual screensaver window, used when closing windows.
If no sName is used it will default to "temp".

sproots : "name here" this is the name of the sprite picture you are using, located in the Pictures folder.

animationIndex : list in square brackets of which sprite indexes to play in order, creates an animation,
starts at top left of picture index 0, goes to the right and down, amount of indexes based on size of picture and
what the sprite size is.

displayCustomColorBackground : true/false put true to show a custom color background on the window.

customBackgroundColor : 4 numbers inside a list, between 0 and 255, red, green, blue, grey.

dimming : # number for opacity in window if custom background color not active.

0 1 2
3 4 5
6 7 8
startPos : # number from above indicating starting point for sprites.

directionMove : # number from above indicating which position to move to. Selecting the same number will spawn the
sprites, but they will not move across the screen. Note: a directionMove of 4 means the sprites will NOT respawn after
going off screen.

moveSpeed : # number for how fast in pixels per frame to move.

randomizeMoveSpeed : true/false when true the moveSpeed will be randomized with a multiple between 1 and 1+randomizeValue.

randomizeValue : # number added to multiplier when randomizing move speed. Negative values will not work properly. Can be whole
numbers or decimal floats, ex 2 or 3.33

spriteSize : # the pixel width and height of sprite from the picture/spritesheet you are using.

spriteCount : # total number of concurrent sprites active per window.

noClear : true/false when true it will not erase images during update. Creates shuffle effect. Trippy.


To close a screenshot window there are two options:

D7S.closeScreensaver(sName); insert the sName inside of " " of which window instance to close. Note- it closes ALL instances of screensaver window with that sName. If no sName is entered it will default to "temp".

D7S.closeScreensaverAll(); closes all screensaver windows regardless of sName.

Depending on when you create the window the player can close it in other ways.
For example, if created on a normal map and the player can move around per normal, if they access the status menu it will close the screensaver window.

If you find any bugs please let me know so I can fix them.

Known Issues:
None

To Do:
Nothing so far.

Details

  • 18.3 KB
  • 20
  • 11/14/2023 01:52 AM

Actions