There must be an easier way to work with picture objects.
This script extends the Game_Picture class with additional methods that manipulate the picture object, and exposes a set of functions to the Game Interpreter..
-change picture by name. Supports any string formatting including variable assignment
-move picture by absolute coords (relative to screen)
-move picture by relative coords (relative to image origin)
-spin picture around origin or top-left corner (in-progress...)
-change the tone
-change the blend type
You can combine any call together as well.
Copy into script editor.
Call the functions through script or script box
Make sure that a picture with the specified filename exists in your Graphics Pictures folder.
Examples at the top of the file
Show a picture with name "test_pic" at coords (10, 10) with opacity 255
make_pic("test_pic", 255, 10, 10)Shift the picture to the left 20 units along the x-axis over a duration of 60 frames
shift_pic(-10, 0, 60)Make a second picture with name "pic2" at coords(60, 10) with opacity 255)
make_pic("pic2", 255, 60, 10, 2)Note that spin_pic(0) stops your picture from spinning.
Link: Download here
*You should make sure you have a valid picture on the screen before you call the picture manipulation methods.
*bitmap appears to be mysterious disposed when you change scenes even though picture is still on the screen
*picture is still on the screen even if you switch maps.
When it says "wait" it means the whole game waits while the action is being processed.
I'm going to look into changing this to support two types of waits:
-whole game waits
-next event waits
Which makes more sense.
If you want something added just ask. I'm just adding wrappers based on order of difficulty.
May be updated at anytime when I find more ways to work with Picture objects.
Edited by Tsukihime, 14 June 2016 - 11:58 AM.