[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,217
Reaction score
4,349
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 Profile Posts

Hosting a private game jam...might have smthng to post soon if I can fix these dang parallaxes.
Oof it's been a while...well I'm back to stay!
Gosh I hate fireworks. Especially if you cant even see em. Its just noise. Noise that scares my pets.
Some (totally) differfent (more traditional) Goblin faces...

what do you guys think?
My game = 4.5k hours, 4 years+ and should be done in 3 weeks!!

OMG so excited!

I plan to finish before my b day, July 21st.

Forum statistics

Threads
99,239
Messages
963,319
Members
130,820
Latest member
viewtifuljoe
Top