Hi,
Sorry if this thread is in the wrong place, but here is my problem: I'm completely new to plugin scripting, so I decided to start with something simple. I wanted to create a plugin that would show a picture and then erase it after a certain amount of time. So I created a .js file in notepad++ with the following code:
function ShowMyPicture() {
//$gameScreen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)
$gameScreen.showPicture(1, "Test01.png", 0, 0, 0, 100, 100, 255, 0)
//$gameInterpreter.wait(frames);
$gameInterpreter.wait(100);
//$gameScreen.erasePicture(pictureId);
$gameScreen.erasePicture(1);
}
ShowMyPicture();
I activated the plugin in the plugin manager of RPG maker and created an event with the following event command:
Script: ShowMyPicture
Problem is; nothing happens, no error, nothing. Is the way I call my function in the event wrong, or is my javascript at fault?
Edit: The Test01.png file is located in the pictures folder of my project.
Sorry if this thread is in the wrong place, but here is my problem: I'm completely new to plugin scripting, so I decided to start with something simple. I wanted to create a plugin that would show a picture and then erase it after a certain amount of time. So I created a .js file in notepad++ with the following code:
function ShowMyPicture() {
//$gameScreen.showPicture(pictureId, name, origin, x, y, scaleX, scaleY, opacity, blendMode)
$gameScreen.showPicture(1, "Test01.png", 0, 0, 0, 100, 100, 255, 0)
//$gameInterpreter.wait(frames);
$gameInterpreter.wait(100);
//$gameScreen.erasePicture(pictureId);
$gameScreen.erasePicture(1);
}
ShowMyPicture();
I activated the plugin in the plugin manager of RPG maker and created an event with the following event command:
Script: ShowMyPicture
Problem is; nothing happens, no error, nothing. Is the way I call my function in the event wrong, or is my javascript at fault?
Edit: The Test01.png file is located in the pictures folder of my project.