[SOLVED] GALV_BasicEventShadows.js: Sprite_BasicShadow

Status
Not open for further replies.

aporokizzu

anti-kumbaya
Veteran
Joined
Jan 14, 2020
Messages
48
Reaction score
49
First Language
english
Primarily Uses
RMMV
Greetings, Boils and Ghouls!

I am trying to amend the following function from the GALV_BasicEventShadows.js plugin:
carbon.png

I created another JS file- dismal_GALV_BasicEventShadows_Extended.js- which I have placed below aforementioned plugin in the Plugin Manager window):
Plugin_Manager_window.PNG

And within it, is the following alias:
carbon (1).png

However, when I playtest my project, I get the following error:
console_window.PNG

I was wondering if anybody could tell me what I am doing wrong?

Thanks in advance for whatever advice you can give me.
 

aporokizzu

anti-kumbaya
Veteran
Joined
Jan 14, 2020
Messages
48
Reaction score
49
First Language
english
Primarily Uses
RMMV
After mulling over it, I found out what the problem was-

Sprite_BasicShadow is a custom class created within GALV_BasicEventShadows.js 's Immediately Invoked Function Expression (IIFE) or Self Executing Anonymous Function ("(function(){})()").

So it's scope is limited to that and cannot be accessed outside of it.

Luckily, per Galv:
galv_terms_of_use.PNG

So all that I needed to do was copy the relevant code and paste it outside of the IIFE (after the "})()" part of the plugin).

galv_shadow_code.PNG
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,216
Reaction score
4,346
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Me Being Dumb spending hrs trying to figure out Irenas Visual Novel busts plugin..lol. I'm probably missing something stupid and obvious xDD

let the journey begin >w>
X.X ok... I guess I'll just have to think about 48x48 a little differently. Its not "room for more work"..."its room for more detail!...yay"
Alexa, play Buck-Tick - Dress
Worst part about doing a plugin based on an existing system: figuring out the best way for developers to set up the data.
Right now, my free time is less when Covid 19 in my country.
Begin to reduce the number of daily infections to 0.

Forum statistics

Threads
99,216
Messages
963,130
Members
130,804
Latest member
oleran
Top